li.remove("z") # remove removes the first occurrence of a value from a list.
li.pop() # it removes the last element of the list, and it returns the value that it removed.