Skip to content

Instantly share code, notes, and snippets.

@fchikwekwe
Created April 30, 2019 02:33
Show Gist options
  • Save fchikwekwe/355d8d1b85aa4a3d3a8870248193bf3e to your computer and use it in GitHub Desktop.
Save fchikwekwe/355d8d1b85aa4a3d3a8870248193bf3e to your computer and use it in GitHub Desktop.
list2.insert(0, 1) # inserting number 1 at index 0
list2.pop() # removing the last value
list1 = [1, 2, 3]
list2 = [1, 2, 3]
# oh no! which value will we get?
dictionary = {
# list1 = [1, 2, 3]
list1: "a_value",
# list 2 = [1, 2, 3]
list2: "another_value"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment