0
How many times word "loop" will printed.. with explanation
5 odpowiedzi
+ 3
https://goo.gl/X5y7tp
Click on "visualize execution" and "forward >".
0
arr = [0,1,2,3,4,5]
n = 0
for _ in arr:
del arr[n]
n += 1
print("loop")
0
Ok..but if we added 1 more element to the arr..ie. arr =[0,1,2,3,4,5,6]
Then.. please explain this
0
Rohan, what's happening has been explained.
You need to do the rest of the thinking alone now (good practice).
0
Ok