Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- """
- Some various ways of saying Hello World in Python
- """
- def hello():
- """
- Print out Hello World in a function.
- """
- print("Hello World in a function.")
- # Call a function that prints out Hello World
- hello()
- # Print out Hello World
- print("Just saying Hello World")
- # Assign the string Hello World to a variable and print it out
- str = "Hello World in a variable"
- print(str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement