The 'for' loop uses membership operator 'in'.
1 Like
True
Reason — The for loop in Python uses the membership operator in to check the presence of a value in a sequence and to iterate over each element of that sequence one by one.
for
in
Answered By
The 'while' loop is suitable to iterate sequence data type.
In Python, 'continue' and 'pass' keywords are interchangeable.
The function of the 'continue' and 'break' statements is the same.
In Python, you cannot create an empty 'for' loop.