combine elemets of a list together forming new lists

后端 未结 0 1231
感情败类
感情败类 2020-12-07 01:17

Hi so I\'m new to python but I have an interesting question

list = [5,1, 5, 2, 5, 3]

How do I make a list like,

newlist = [51,         


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