hat = [1, 2, 3, 4, 5] number = int(input()) hat[len(hat) // 2] = number hat.pop(-1) print(len(hat))
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment