Week 5 Notes - morgan-hanrahan/Tech-Journal GitHub Wiki

variable:

x = "This is a string data."

y = 2

List ---> stores multiple values

grades = [10,0,7,0,8,10]

average = [8.5] ---------> Can append a List using append()

= [8.5,9.2]

All items are assigned an index value starting at 0.

List Methods: --------> methods = some action that can be applied to a list

append() will add a value to a list, but will only put that value at the end

del 'list name' will completely delete and wipe the list from memory

remove() will remove an item from the list. If there's multiple of the same number it'll just delete the first one

pop() removes a value in a list based on its index value