Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HelloWorld:
- def __init__(self):
- self.first = "Hello"
- self.last = "World"
- def __str__(self):
- return ' '.join([self.first, self.last])
- def main():
- hw = HelloWorld()
- print hw
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement