Skip to content

Instantly share code, notes, and snippets.

@Wulgaren
Wulgaren / hello_world.py
Created June 3, 2022 16:27
Hello World Examples 2343
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@Wulgaren
Wulgaren / hello_world.py
Created June 3, 2022 16:07
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()