my_list = [] my_list.append(12)
Here is what the above code is Doing:
1. We create an empty list called my_list.
2. We add the number 12 to the end of my_list.
3. We print my_list.
my_list = [] my_list.append(12)
Here is what the above code is Doing:
1. We create an empty list called my_list.
2. We add the number 12 to the end of my_list.
3. We print my_list.