Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Last active Sep 16, 2020
Embed
What would you like to do?
#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