<jupyter_start><jupyter_text>Spotted a mistake? Report it here  Beginner's Python—Session Six Homework Exercises _As we are moving deeper into the world of Python, the tasks we can complete with our skills can become more and more complicated. For that reason, there are fewer exercises to complete this week but of a slightly harder standard. Don't be put off; these are meant to challenge you._  Functions Create a function called `pi` which returns the value `3.14159` Create two functions, `circumference` and `area` which each have a single parameter `radius`. These should return the circumference and area of a circle with radius `radius` respectively. (See session one for the formulae for these) Create a function `describe_list` which prints the min, mean, and max of a list. (Bonus: print the median too with the helped of the `sorted()` function) Evaluate the following code cell to define the contained function<jupyter_code>def print_row(r, n):
    w = n - 2 * abs((n - 1) // 2 - r)
    print(('*' * w).center(n))<jupyter_output><empty_output><jupyter_text>Create a function, `print_diamond` which has parameter `size`. If `size` is even, print an error message. Otherwise loop through the numbers 0 to `size-1` using the counter variable `row` and call `print_row(row, size)` each iteration  Recursion What happens when we create a function that calls itself with no condition to eventually stop the recursion? Here's an example:<jupyter_code>def recurse():
    return recurse()
recurse()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07436399217221135, 'fraction_numerical': 0.007175472928897586, 'mean_word_length': 5.063241106719367, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '467482', 'license': 'MIT', 'n_tokens_mistral': 425, 'n_tokens_neox': 405, 'n_words': 215, 'path': 'session_six/session_six_exercises.ipynb', 'repo_name': 'akhiln007/beginners-python', 'size': '1533'}