CS 151, fall 2019 Quiz 8 Grading - unless stated otherwise each part is worth 1 point. There are a total of __ points. Please fill in the following. 0) Name: 1) Python lists, functions, tuples, strings For this section answer with the appropriate function name or python keyword 1.1) Function to create a sequence of integers: 1.2) Function to sort a list: 1.3) Module to produce random values: 1.4) Keyword used in defining a function: 1.5) Keyword to delete from a list (based on position): 1.6) Function to give length of list/tuple/string: 1.7) Loop to iterate through a list: 1.8) Function to choose at random from a list/tuple: 1.9) Function to search and delete from a a list: 1.10) Keyword to send value back from function: 1.11) Function to add to the end of a list: 1.12) Keyword to test if something is in a list/tuple/string: 2) Evaluate the Python expression Write exactly what Python would print as the result of each expression. For each assume that you are starting right after the following code has been executed - x = 5 y = 4 L_i = [x, 7, x, 8] word = 'ball' L_s = ['hi', 'L_i', word] t = (1, 2) L_t = [t, (3, 4)] 2.1) 7 in L_i 2.2) t.index(1) 2.3) L_s[0][1] 2.4) L_t[0] 2.5) 'word' in L_s 2.6) L_s.index('hi') 2.7) L_i[0:3] 2.8) word.index('a') 2.9) len(L_s[1]) 2.10) L_i[1] 2.11) len(L_i) 3) Programs Write a complete program for the following (one would be asked). 3.1) Loop to read integers from the user, store them in a list, and print the list out in sorted order. Or, same task but reading in strings. 3.2) Create a list of (username, password) pairs, loop to ask user for their username and password and check if it matches any in the list. Note - password could be either a string or integer. 3.3) Ask user for a string, loop through to count how many vowels versus non-vowels. Or count how many spaces, how many commas, etc. 3.4) Create a list of words, ask user for a word and check if it is in the list. 3.5) Loop to start with a string '*' then have it double each time in the loop and print out (exponential growth). 3.6) Create a list of who is waiting, loop to repeatedly ask whether to add someone to the back of the line / take person off the front of the line / or print the line / or quit.