Created
February 20, 2019 07:33
-
-
Save santoshpy/b71d413094354dca3b7bb26c54a9085e to your computer and use it in GitHub Desktop.
Hello World Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld: | |
def __init__(self, name): | |
self.name = name.capitalize() | |
def sayHi(self): | |
print "Hello " + self.name + "!" | |
hello = HelloWorld("world") | |
hello.sayHi() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment