Skip to content

Instantly share code, notes, and snippets.

@johnmcc
Created April 20, 2018 10:30
Show Gist options
  • Save johnmcc/ea939f01858878b522a69ffb259eba53 to your computer and use it in GitHub Desktop.
Save johnmcc/ea939f01858878b522a69ffb259eba53 to your computer and use it in GitHub Desktop.

https://docs.python.org/3/tutorial/datastructures.html

Using the documentation for list methods, complete the following tasks:

Add "Queen Street" to the start of the list

Find out what index "Croy" is at in the list

Add "Polmont" at the appropriate point (between "Falkirk High" and "Linlithgow")

Remove "Haymarket" from the list of stops

Remove all items from stops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment