explain the usage of for loop in python programming by giving examples
Answers
Answered by
2
Explanation:
The for loop in Python is used to iterate over a sequence, which could be a list, tuple, array, or string. The program operates as follows: We have assigned a variable, x, which is going to be a placeholder for every item in our iterable object.
Answered by
1
Answer:
The for loop in Python is used to iterate over a sequence, which could be a list, tuple, array, or string. The program operates as follows: We have assigned a variable, x, which is going to be a placeholder for every item in our iterable object.
Explanation:
I hope this helps you
Similar questions