Answers for "how to for loop in python to add two list"

7

add two list in python

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

list1.extend(list2)
print(list1)
Posted by: Guest on May-17-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 "how to for loop in python to add two list"

Python Answers by Framework

Browse Popular Code Answers by Language