Python is a versatile high-level programming language that is much more flexible than older languages. One very useful aspect of the programming language is the way it handles a structure called a "list." These store multiple units of data, called elements and unlike older programming arrays, Python lists will automatically adjust in size to accommodate new entries. The programmer can access the data stored at at particular address within the list, as well as removing data stored at a particular address.
Video of the Day
Create a new list to use in your program by typing "listName = [ ]" where "listName" is the name you give to your Python list. You can also choose to put the first few items in your list between the brackets when you declare the array in the first place.
Add additional elements to the array by calling the method "append(x)," where "x" is the piece of data you wish to add. For example, to add the number 3 to the array, type "listName.add(3)".
Remove an element from the array by using the method "remove(x)," where "x" is the piece of data you want to remove. For example, you can remove the piece of data you added in the last step with the command "listName.remove(3)".