Answers for "two loops create list python"

22

looping through two lists python

for f, b in zip(foo, bar):
    print(f, b)
Posted by: Guest on March-30-2020
0

joining two lists in python using for loop

# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A

list1 = ["a", "b" , "c"]
list2 = [1, 2, 3]

for x in list2:
  list1.append(x)

print(list1)
Posted by: Guest on December-29-2021

Code answers related to "two loops create list python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language