1my_list = [23, 11, 42, 24523]
2
3# append will add it as if you're adding a new list to it
4my_list.append([34523, 76979])
5print(my_list)
6
7# extend will go over each item in the new source list and add each
8# element as part of the target list (my_list)
9my_list.extend([12, 99])
10print(my_list)
11
12"""
13Output:
14[23, 11, 42, 24523, [34523, 76979]]
15[23, 11, 42, 24523, [34523, 76979], 12, 99]
16"""
1my_list = ['a','b']
2my_list.append('c')
3print(my_list) # ['a','b','c']
4
5other_list = [1,2]
6my_list.append(other_list)
7print(my_list) # ['a','b','c',[1,2]]
8
9my_list.extend(other_list)
10print(my_list) # ['a','b','c',[1,2],1,2]