Vidyalelo
Python · Q76

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 76

Q76

What will be the output of the following Python code? names1 = ['Amir', 'Bala', 'Chales'] if 'amir' in names1: print(1) else: print(2)

A.
None
B.
1
C.
2
Answer
D.
Error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board