1.

What will be the output of the following code segment:myList = [1,2,3,4,5,6,7,8,9,10]for i in range(0,len(myList)): if i%2 == 0: print(myList[i])

Answer» What will be the output of the following code segment:



myList = [1,2,3,4,5,6,7,8,9,10]

for i in range(0,len(myList)):

if i%2 == 0:

print(myList[i])



Discussion

No Comment Found

Related InterviewSolutions