-
-
Save IndhumathyChelliah/7339795b7981117315f55833bf6226a5 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
#Single underscore used in for loop | |
for _ in range(5): | |
print ("Python") | |
''' | |
Output: | |
Python | |
Python | |
Python | |
Python | |
Python | |
''' | |
#Iterating through list | |
colors=["red","blue","green"] | |
for _ in colors: | |
print (_) | |
''' | |
Output: | |
red | |
blue | |
green | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment