What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-24 15:39:07
python extend list with another list
my_list = [23, 11, 42, 24523] # append will add it as if you're adding a new list to it my_list.append([34523, 76979]) print(my_list) # extend will go over each item in the new source list and add each # element as part of the target list (my_list) my_l... Add solution -
Python 2021-09-12 11:01:03
python array extend
my_list = [23, 11, 42, 24523] # append will add it as if you're adding a new list to it my_list.append([34523, 76979]) print(my_list) # extend will go over each item in the new source list and add each # element as part of the target list (my_list) my_l... Add solution