This part contains short-answer questions. All these questions involve code fragments either to be read by you or written by you.
1. Use list comprehension to create a sorted list containing all the positive multiples of 6 or 7 that are less than 200. Hence, the list contains 6, 7, 12, 14, 18, 21.
2. What is the output of the following code fragment?
L = 11stM
M = map(lambda xx: xx.split("bownow"brovmcow,hollow]), L)
print(L)
3. Suppose course-grades is a dictionary of key-value pairs in which the key is the name of a student in a given semester. Assume that the only possible letter grades are A, B, or C. Sarah Brown has grades [B, A, B, B]. Write Python code to create a list of names of students with a grade of A or higher in all their courses for the semester.