how to add a name or a number to a list in python 1

how to add a name or a number to a list in python

[nameOfList].[appendOrRemove]("a")

Here is what the above code is Doing:
1. We’re creating a list called “nameOfList”
2. We’re appending the string “a” to the list “nameOfList”
3. We’re printing the list “nameOfList”

Similar Posts