3. Functions (25%)
Answers to the following questions should be implemented as functions in a program called
functions.py. While coding, check Python libraries for methods that may make your job easier.
a. Write a function that takes in a string as an argument, and returns a string where for
every single char in the original string, there are two chars. For example
double_char('The')) -> 'TThhee' and
double_char('Hi-') ->HHii--.
b. Write a function that takes a list and returns a new list with unique elements of the first
list. For example, unique_list([1,2,3,3,3,4,4,5]) -> [1,2,3,4,5].