Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> x, y = 2 ** 5, 2 ** 5
- >>> x == y
- True
- >>> x is y
- True
- >>> id(x), id(y)
- (9063616, 9063616)
- >>> x, y = 2 ** 1000, 2 ** 1000
- >>> x is y
- False
- >>> id(x), id(y)
- (140501874197648, 140501874199728)
- >>> x is y
- False
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement