I am trying to swip the multiple of 10 to next index value in value python but following error is comming

后端 未结 0 1920
遥遥无期
遥遥无期 2020-11-27 12:30

error -"list_1.insert(((list_1.index(i))+1), temp) ValueError: 30 is not in list"

input-23,30,46,40,56 for i in list_1:

    if i % 10 == 0:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题