Created
July 15, 2018 12:54
-
-
Save solen003/fe571612353710f2b92719b80082994d to your computer and use it in GitHub Desktop.
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
movies2 = [("SW", 1992), ("GWR", 1999), ("PIY", 2010), ("AGE", 2015), | |
("GIT", 1995), ("BUT", 1970), ("GGG", 2001)] | |
pre2k = [i[0] for i in movies2 if i[1] < 2000] | |
print(pre2k) | |
pre2k2 = [title for (title, year) in movies2 if year < 2000] | |
print(pre2k2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment