Find and write the output for the following code (3)
l=[10,20,30,40,50,60]
for i in range(1,6):
l[i-1]=l[i]
for i in range(0,6):
print(l[i],end='')
Answers
Answered by
3
Answer:
10
20
30
40
50
60
60
Explanation:
in first loop a[i-1] = a[i]
so in second it will print 60 two times because there will be 60 present in memory of a[6]
Answered by
1
I also need the same answer .but not
Similar questions