5-to-10-minute suggested exercises, April 23-28, CMS.951 (1) Write some code that prints the integers, starting at 1, up to a random number between 1 and 10. In other words, 1/10 of the time it prints "1 2 3 4", 1/10 of the time it prints "1", and 1/10 of the time it prints "1 2 3 4 5 6 7". Then, loop through this code 15 times. (2) Write a function (even though Python already supplies one) that accepts a list as an argument and that returns the minimum value in the list. Call this function my_min(). (3) Write a program that prints sentences of the form "My peanut butter in your chocolate!" The "peanut butter" should be chosen at random from a list of words. The "chocolate" should be chosen at random from the same list of words. You should make up the list of words. (4) The program in (3) can produce sentences of the from "My peanut butter in your peanut butter!" While I find this poetically pleasing, for the sake of argument say that we want to prohibit this from happening. Modify the program so that the word selected for the first part of the sentence is never selected for the second part. (5) Write a function that accepts an argument N and returns the first N numbers of the Fibonacci sequence. (Hint: We did this in the second class.) (6) You can gain access to the computer's clock using: from time import localtime You can then find out the hour, minute, and second by using localtime().tm_hour localtime().tm_min localtime().tm_sec Knowing this, write a very short program (no more than 10 lines) in Python which is a creative clock. You probably will want to use a text editor to write a Python .py file for this one, but you can verify that the above ways of accessing localtime's attributes (tm_hour etc.) work, and you can try things out, in the interpreter.