Created
October 17, 2021 06:51
-
-
Save ashimaathri/294793ffe718849a5be91c96f4194d8c to your computer and use it in GitHub Desktop.
To tuple or not to tuple
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
# Will print 'r', 'e', 'd' | |
for color in ('red'): | |
print(color) | |
# Will print 'red' | |
for color in ['red']: | |
print(color) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment