+ 1
Confusion with lists.
Output needed for this question. a=[5,4,3,2] a[3]=1 a[a[3]]=6 print(a[1]%4)
3 ответов
+ 3
a=[5,4,3,2]
a[3]=1 -> a=[5,4,3,1]
a[a[3]]=6 -> a[1]=6 -> a=[5,6,3,1]
print(a[1]%4) -> 6%4=2
+ 1
Wrong answer. Output : 2
+ 1
How?
Output needed for this question. a=[5,4,3,2] a[3]=1 a[a[3]]=6 print(a[1]%4)