Created
March 7, 2016 20:39
-
-
Save RyanMarcus/900429f2a3ab248e3d70 to your computer and use it in GitHub Desktop.
Python 2 vs. 3 semantics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ryan Marcus 2016 | |
# Think about what you would expect this code to print | |
# And then run it using Python 2.7.11 (or newer) and with Python 3 | |
for i in range(20): | |
x = [i for i in range(2000, 4000)] | |
print(i) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment