1. Write a function called swap that takes as input a dictionary and returns a new dictionary where key is the old value and the value is the old key, i.e swaps the key/values. You may assume that the value are unique. >>> d = {"a":1, "b":2, "c":3} >>> swap(d) {1: 'a', 2: 'b', 3: 'c'} 2. Write a function called capitalized_lines that takes as input a file and counts the number of lines that start with a capital letter. 3. T/F: If we ran the following code, 10 would be printed: def mystery(x): x = 2 x = 10 mystery(x) print(x) 4. Rewrite the following function to improve the style: def longwinded(a, b, c): if a > b: if a > c: return True else: return False else: return False 5. Write a function that takes two parameters: a dictionary and a number. The function should add the number to each value in the dictionary. 6. Write a function that takes a string as a parameter and returns the string with all the uppercase letters removed. Hint, the isupper method may be useful.