Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #joining #lists #python #loop
ADD COMMENT
Topic
Name
9+2 =