input_list=[5,2,1,3,5,8,1]
val=0
while(len (input_list) !=1):
input_list.pop (1)
input_list.remove(input list[0])
input_list.append(val+1)
valt=1
print (input_list)
Answers
Answered by
0
Answer:
hurchhheschyrsswethhhh uteaxhuhuhjdseghu
Answered by
0
Answer:
[6]
Explanation:
delete first 2 elements add '1' and follow these steps as shown below
[5,2,1,3,5,8,1]
[1,3,5,8,1,1]
[5,8,1,1,2]
[1,1,2,3]
[2,3,4]
[4,5]
[6]
Similar questions