Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~$ python
- Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
- [GCC 7.3.0] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> 2+2
- 4
- >>> print Hello World;
- File "<stdin>", line 1
- print Hello World;
- ^
- SyntaxError: invalid syntax
- >>> print " Hello World"
- Hello World
- >>> print("Hello World")
- Hello World
- >>> for i in range(10):
- ... print i
- ...
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- >>> for i in range (1,10):
- ... print i
- ...
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement