1. Given the following function: def mystery(sequence): result = "" for val in sequence: result = result + val + val return result For each of the following calls, state what would be returned (or an error): a. mystery(5) b. mystery([1, 2, 3]) c. mystery("abcd") d. mystery(("apples", "bananas")) e. mystery(["apples", "bananas"]) f. mystery("123") 2. What would the following calls print out: a. print map(abs, [-1, 1, -2, 2]) b. import math def dist(point): (x, y) = point return math.sqrt(x*x + y*y) print map(dist, [(1,2), (3,4)])