how many loops are there in python? explain them also.
Answers
Answered by
0
Answer:
There are two types of loops in Python, for and while
Explanation:
A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string). With the for loop we can execute a set of statements, once for each item in a list, tuple, set etc.
Similar questions