Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- misha@kihot:~$ python -c "print 1/2"
- 0
- misha@kihot:~$ python3 -c "print 1/2"
- File "<string>", line 1
- print 1/2
- ^
- SyntaxError: invalid syntax
- misha@kihot:~$ python3 -c "print(1/2)"
- 0.5
Advertisement
Add Comment
Please, Sign In to add comment