x = 'Python' y = 'y' in x print(y)
Click an option to check whether your answer is correct.
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
Explore more questions from similar topics.
Share this MCQ with your friends or study group.