Learning
For loop python
In python, for loop is used for iterating over a sequence (that is either a list, a dictionary,a tuple, a set or a string).
Example :
fruits = [“apple”, “banana”, “cherry”]
for x in fruits:
print(x)
Comments
Leave a comment