Professional Documents
Culture Documents
HXJVZT
HXJVZT
<list name>.append(<element to
add>) adds an element to the end of the list
The for loop is used when you have a known list.index(val) finds the index of the
number of iterations or when you want to first element in the list whose value matches
iterate through a specific, known set of items. val.