What will be the output of the following code? | List Que. 29

29. What will be the output of the following code?

L1=[1,276,986,1783]
Print(276 in L1)
  1. YES
  2. Error
  3. True
  4. False
  5. 276

Answer: C) True

Explanation:

print (element in list_name) will give you true if the particular element is there in the list else it will return you false.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.