What will be the outcome?

27. What will be the outcome?

# Suppose you have the following list
l1=["include help","hello","everyone",1,2,[1000,123]]
print(l1.index("hello"))
  1. 0
  2. 1
  3. 2
  4. 3

Answer: B) 1

Explanation:

The index function will give you the index of the particular element.

Comments and Discussions!

Load comments ↻






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