Login and Register ×
Check your Email for the OTP
Python Programming Language MCQ Python List MCQ
⚠ Report ✓ Question Verified Copy Link
x = [24, 50, 37] y = 24 in x print(y)
Explanation:
The in keyword has two purposes:
in
The in keyword is used to check if a value is present in a sequence (list, range, string etc.).
The in keyword is also used to iterate through a sequence in a for loop:
for
Related Topic:
Share Above MCQ
Learn More MCQ Questions from Python Programming Language MCQ Python List MCQ