Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- print(sys.version)
- #2.7.13
- print([([] < ''), ([] > ''), ('' < []), ('' > [])])
- #[True, False, False, True]
- import sys
- print(sys.version)
- #3.6.5
- #Traceback (most recent call last):
- # File "<stdin>", line 1, in <module>
- #TypeError: '<' not supported between instances of 'list' and 'str'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement