1. Which of the following statements would result in an error?
a. (x, y) = ("banana", 12)
b. (x, y) = ("banana")
c.
t = ("banana", 12)
(x, y) = t
d.
t = ("banana", "cream", "pie")
print(t[-1])
e.
t = ("banana", "cream", "pie")
(x, y) = t
f.
t = ("banana", "cream", "pie")
t[0] = "chocolate"
2. Write a function called my_max that takes a list of numbers (positive or negative)
and returns the largest value. You may assume that the list is non-empty, i.e. has
at least one value in it. Take a look at the version we wrote in class for
calculating the max of a list of positive numbers.
Hint: we know that the max has to be one of the elements in the list.