Sep-30-2022, 08:04 PM
Hi,
I have two lists like this:
I hope this was understandable, "slight" newbie here
Thanks,
Sander
I have two lists like this:
List1 = ['1','2','3','5'] list2 = ['a','b','c','d','e']and im trying to combine them into one list of lists like this:
Wanted_result = [['1','a'],['2','b'],['3','c'],['4','d'],['5','e']]I'm able to make one like this:
newlist = [list1[0],list2[0]] print(newlist) ['1', 'a']However, I have no idea how to get it working using a forloop. What would be the best way of doing this?
I hope this was understandable, "slight" newbie here

Thanks,
Sander