0

Li= [1, 5, 14, 28, 12] print (Li.pop (2)+Li.pop (3))

I want to know how is the answer 26

18th Mar 2023, 5:51 PM
Snehal Subudhi
Snehal Subudhi - avatar
1 Odpowiedź
+ 8
Li = [ 1,5, 14, 28, 12 ] Li.pop(2) returns 14 and Li = [1, 5,28,12] . Next, Li.pop(3) returns 12 and Li = [1, 5, 28] So 14+12 = 26
18th Mar 2023, 6:00 PM
Jayakrishna 🇮🇳