Python Day 3: Lists & Branching

We can also add elements to our list, by appending them. 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”) ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download