How to combine odd no. In list1 and even no. In list2 then using those to form a new list?

后端 未结 0 1501
北恋
北恋 2020-11-22 14:44

By using for loops, if statement, let’s say list1 is [1,2,3,4,5] and list2 is [10,11,12,13,14], how to get the result of [1,3,5,10,12,14]?

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