Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- python3.4
- Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03)
- [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
- Type "help", "copyright", "credits" or "license" for more information.
- >>> print("Hello world")
- Hello world
- >>>counter = 5
- >>>
- >>> while counter > 0:
- ... counter -= 1
- ... print()
- ... print("Hello World")
- File "<stdin>", line 4
- print("Hello World")
- ^
- SyntaxError: invalid syntax
- >>> counter = 5
- >>> while counter > 0:
- counter -= 1
- print("Hello")
- Hello
- Hello
- Hello
- Hello
- Hello
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement