Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import sys
  2. print(sys.version)
  3. #2.7.13
  4.  
  5. print([([] < ''), ([] > ''), ('' < []), ('' > [])])
  6. #[True, False, False, True]
  7.  
  8. import sys
  9. print(sys.version)
  10. #3.6.5
  11. #Traceback (most recent call last):
  12. # File "<stdin>", line 1, in <module>
  13. #TypeError: '<' not supported between instances of 'list' and 'str'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement