Skip to content

Instantly share code, notes, and snippets.

@BLKKKBVSIK
Created August 27, 2020 17:47
Show Gist options
  • Save BLKKKBVSIK/86d9a0bd1ecaa75b14c35b93f740b503 to your computer and use it in GitHub Desktop.
Save BLKKKBVSIK/86d9a0bd1ecaa75b14c35b93f740b503 to your computer and use it in GitHub Desktop.
Hello World TEST
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
hello.sayHi
Run `python hello_world.py` to print Hello World
Run `ruby hello_world.rb` to print Hello World
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment