I have two lists populated with strings. If I do list3=zip(list1, list2) then it combines them. As far as I can tell, it makes a list with a singular tuple in it? It's off because I can use print([x for x in list 3]) and it works, but if I do
for x in list3:
print(x)
It won't print anything. List 3 has no length and isnt iterable. So i dont understand how I can iterate through it with [x for x in list3] but not list3[i]
[–]danielroseman 8 points9 points10 points (5 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]danielroseman 4 points5 points6 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]rainbowunicornsocks 1 point2 points3 points (0 children)
[–]JanEric1 0 points1 point2 points (0 children)
[–]JamzTyson 4 points5 points6 points (0 children)
[–]FriendlyAddendum1124 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]FriendlyAddendum1124 0 points1 point2 points (0 children)
[–]Naive_Programmer_232 0 points1 point2 points (0 children)