<jupyter_start><jupyter_text>Exercise 3Add the specified code for each code cell, running the cells _in order_. Define a function `add_three` that takes a single argument and returns a value 3 greater than the input.<jupyter_code>def add_three(add_value):
    value = add_value + 3
    return value<jupyter_output><empty_output><jupyter_text>Create and output a variable `ten` that is the result of passing `7` to your `add_three()` function.<jupyter_code>add_three(7)<jupyter_output><empty_output><jupyter_text>Create a variable `ten_str` that is the result of passing `"7"` to your `add_three()` function. What does this tell you about how the function should be described (e.g., in a doc string)?<jupyter_code>ten_str = str(add_three)("7")
print(ten_str)<jupyter_output><empty_output><jupyter_text>Define a function `imperial_to_metric` that takes in two arguments: a number of feet and a number of inches. The function should return the total length in meters. _Include an appropriate doc string_. Create and output variable `height_in_meters` by passing your height in imperial to the `imperial_to_metric()` function. Define a function `compare_str_length` that takes in 2 strings, and returns a sentence of the form```"The difference in string lengths is N"```Include an appropriate doc string. Pass two strings of different lengths to your `compare_str_length()` function. Define a function `fraction_str()` that takes two parameters, a numerator and a denominator, and outputs a string version of that that fraction (e.g., `"3/4"`). Make the parameters be **keyword arguments** with default values of 1. Call the `fraction_str()` function with named arguments to produce the string `"5/11"`. Print the result.- For fun: try listing the denominator argument before the numerator argument! What happens? Call the `fraction_str()` function only specifying a denominator of `3`. Print the result Call the `fraction_str()` function using **positional arguments** (unnamed) to produce the string `"11/5"`. Print the result.<jupyter_code>fraction_str(11,5)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08385241974125539, 'fraction_numerical': 0.010062290368950648, 'mean_word_length': 6.03030303030303, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '324826', 'license': 'MIT', 'n_tokens_mistral': 595, 'n_tokens_neox': 564, 'n_words': 261, 'path': 'exercise-3/exercise.ipynb', 'repo_name': 'ebajet/ch5-functions', 'size': '2087'}