Last active
January 30, 2020 08:12
-
-
Save potocpav/510238f263c5f5c32a24cf2b90442324 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
greetings = [(lambda: f"Hello, {i}!") for i in range(4)] | |
# What do these output? | |
print(greetings[0]()) | |
print(greetings[1]()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment