How do I take a list that is in 2 columns and make a tuple, put all the tuples in a list, and return that list? I'm using PyCharm

后端 未结 0 678
北恋
北恋 2021-01-28 06:41

My data looks formatted like this:

XX, 4059

TSD, 109

ETC, 3679

and I want to return something that looks like this: [(\'XX\', 4095), (\'TSD\', 109),.

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