Saved Bookmarks
| 1. |
How many loops are there in python? explain them also. |
|
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. |
|