1. You decide to reimplent the setcolor_random method from class that randomly sets the fillcolor to one of four different colors, but you're feeling rebellious and don't use any elifs: def setcolor_random(): """ Set the fill color randomly from: blue, purple, red and yellow """ color = randint(1,4) if color == 1: fillcolor("blue") if color == 2: fillcolor("purple") if color == 3: fillcolor("red") else: # color == 4 fillcolor("yellow") When you try it, unfortunately, it doesn't quite work right. What will this function actually do and what is the problem? 2. We've now seen two loop types, the first loop and the while loop. Even though their both useful, the for loop doesn't actually add any additional functionality; it's just convenient. Rewrite the following function that sums up the numbers from 1 to n using a while loop. def my_sum(n): total = 0 for i in range(1,n+1): total += i return total 3. Given the list definition my_list = [4, 8, 16, 2, 7, 9] what would each of the following display (or not that an error would occur): a. print(my_list[1]) b. print(my_list[4]) c. print(my_list[6]) d. print(my_list[len(my_list)-1]) e. print(my_list[-1]) f. print(my_list[1:5]) f. print(my_list[-3:-1])