I have a large number of lists, with different sizes that I would like to join together. I need to be able to retrieve each specific original list by order. For example
list1 = ['apple', 'orange', 'mango']
list2 = ['banana', 'melon']
result: [['apple', 'orange', 'mango'], ['banana', 'melon']]
And then, I need to be able to do:
result[1]
['banana', 'melon']
question from:
https://stackoverflow.com/questions/65932125/how-to-add-multiple-lists-together-while-keeping-them-as-elements-in-python 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…