Login and Register ×
Check your Email for the OTP
Python Programming Language MCQ Python List MCQ
⚠ Report ✓ Question Verified Copy Link
x = 'Python' y = 'y' 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