Python-Quizzes | Python List Quiz | Question 1

Last Updated :
Discuss
Comments

Find the output of the following program:

Python
nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv'] 

pos = nameList.index("GeeksforGeeks") 

print (pos * 3)

GeeksforGeeks GeeksforGeeks GeeksforGeeks

Harsh

Harsh Harsh Harsh

ValueError: \'GeeksforGeeks\' is not in list

Share your thoughts in the comments