Given a list and we have to print its all elements using FOR and IN loop in Python.
FOR and IN constructs as loop is very useful in the Python, it can be used to access/traverse each element of a list.
Syntax of for ... in loop
for variable in list_name:
Statements
Example/Programs: Declaring and printing a list
Output
need an explanation for this answer? contact us directly to get an explanation for this answer