Python Programing: An Introduction to Computer Science

When we append to a list, we update it by adding an element at the end. In the example below, we use the dot operator after the name of the list we want to modify. This then gives us access to Pythons built-in functions that we can perform on that list. BestFriends.append(“Raoul”) Index Value BestFriends[0] Willie BestFriends[1] Mike ................
................