how to add some thing in python list 1

how to add some thing in python list

array = [1,2,3,4]

array.append(5) # congrats u did it 🙂

Here is what the above code is Doing:
1. We create a list called array.
2. We add the number 5 to the end of the list.

Similar Posts