can you add to a list wiht += in python code example
Example 1: how do i add to a list in python
a=[1,2,3,4]
a+=[5,6]
Example 2: how to add to a list python
a_list = [1,2,3]
a_list.append(4)
a=[1,2,3,4]
a+=[5,6]
a_list = [1,2,3]
a_list.append(4)