<jupyter_start><jupyter_text>Exercises 9: FunctionsThere are some tricky questions in here - don't be afraid to ask for help. You might find it useful to work out a rough structure or process on paper before going to code. Task 1: Regular functions1. Write a function to find the maximum of three numbers<jupyter_code># Your solution goes here<jupyter_output><empty_output><jupyter_text>2. Write a function that sums all numbers in a list<jupyter_code># Your solution goes here<jupyter_output><empty_output><jupyter_text>3. Write a function that reverses a stringE.g. "123abcde" becomes "edcba321".Hint: you can use negative indices, where the index `-1` gives the last element in the string, `-2` gives the second last, etc.<jupyter_code># Your solution goes here<jupyter_output><empty_output><jupyter_text>Task 2: Recursive FunctionsFor the next three exercises, try thinking first about your base case and then your recursive case. Write your code on paper first if it helps!1. Write a functio called `recursive_exponent(base, exp)` that takes a `base` and an `exp` as parameters and _recursively_ computes base ^ exp. You are not allowed to use the `**` operator!<jupyter_code># Your solution goes here<jupyter_output><empty_output><jupyter_text>2. Write a function called `recursive_countdown(n)` that uses recursion to print numbers from `n` to `0`, where `n` will be a positive integer parameter.<jupyter_code># Your solution goes here<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07336956521739131, 'fraction_numerical': 0.01154891304347826, 'mean_word_length': 6.014285714285714, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '262513', 'license': 'MIT', 'n_tokens_mistral': 449, 'n_tokens_neox': 430, 'n_words': 190, 'path': '09 Functions/09_Exercises.ipynb', 'repo_name': 'ethankelly/PythonFundamentals', 'size': '1472'}