Home >>Python Keywords >Python for Keyword
Python for Keyword is used to iterate through a sequence, like a list, tuple, etc and also helps you to create a loop.
Here is an example of Python for Keyword:
for z in range(1, 12):
print(z)
colors = ["red", "blue", "yellow"]
for z in colors:
print(z)