<jupyter_start><jupyter_text>Week 04, Assignment 02: Methods I Basic methodologiesIn this lesson we will be coding methods and functions  Objective 1: Philosphy behind the methodExplain what a method is. Explain what the primary reason we, as programmers, make use of methods in our software is.  Objective 2: The basicsWrite a method that prints every letter from A to Z in the English alphabet. Yor method name must be `print_alpha`<jupyter_code># your method here

print_alpha()<jupyter_output><empty_output><jupyter_text>Objective 3: Adding parametersWrite a method called `menu_print` that does the following:* The method uses two paramaters `restaurant` and `menu`.* `restaurant` is a string with the name of a restaurant * `menu` is a list of tuples with all the menu items in it* The function must print the name of the restaurant and each menu item's name and price on a serperate line.* Use pretty printing to ensure the menu is items are spaced out evenly.<jupyter_code># your function here

menu_print("Applebees",[("Hamburger",13.99),("French Fries",8.99),("Salad",10.99)])<jupyter_output><empty_output><jupyter_text>Objective 4: Optional paramatersCopy your code from above into the cell below. Create a third optional paramater called `inflation` with a default value of `1`. Make your function multiply the menu item prices with the value given by `inflation` before printing it. Then run the cell below it to ensure your function is working properly.<jupyter_code># modified code here
menu_print("Applebees",[("Hamburger",13.99),("French Fries",8.99),("Salad",10.99)]) # default
menu_print("Applebees",[("Hamburger",13.99),("French Fries",8.99),("Salad",10.99)],1.05)
menu_print("Applebees",[("Hamburger",13.99),("French Fries",8.99),("Salad",10.99)],1.33)<jupyter_output><empty_output><jupyter_text>Objective 5: Return statementsWrite a function called `item_price` below that does the following:* Searches for the name of an item in the `Applebees` list* If the item is found then it will return the price of that item as a float* If the item is not found it will return -1<jupyter_code>Applebees = [("Hamburger",13.99),("French Fries",8.99),("Salad",10.99),("Soda",2.99),("Chocolate Cake",15.99)]

#your function here

print(item_price("French Fries"))
print(item_price("Tapioca"))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1093951093951094, 'fraction_numerical': 0.03389103389103389, 'mean_word_length': 6.4504792332268375, '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': '466168', 'license': 'MIT', 'n_tokens_mistral': 774, 'n_tokens_neox': 699, 'n_words': 274, 'path': 'python/Assignment_One/Assignment 1.5.2_Methods_1.ipynb', 'repo_name': 'Vattenkruka/Python_Short_Course', 'size': '2331'}