<jupyter_start><jupyter_text>Module 2 Practice Functions Arguments & Parameters Student will be able to  - **create functions with a parameter**  - **create functions with a `return` value** - **create functions with multiple parameters**- **use knowledge of sequence in coding tasks**  - **use coding best practices**   &nbsp; Tasks<jupyter_code># [ ] define and call a function short_rhyme() that prints a 2 line rhyme
def short_rhyme():
    print('It is time')
    print('to make a dime')
    return
short_rhyme()
# [ ] define (def) a simple function: title_it() and call the function
def title_it(msg):
    book_title = ("The title of the book is " + msg.title())
    print(book_title)
# - has a string parameter: msg
# - prints msg in Title Case


# [ ] get user input with prompt "what is the title?" 
user_input = input('what is the title? ')
# [ ] call title_it() using input for the string argument
title_it(user_input)
# [ ] define title_it_rtn() which returns a titled string instead of printing
def title_it_rtn(header):
    book_title = header.title()
    return book_title
# [ ] call title_it_rtn() using input for the string argumetnt and print the result
title_input = input("What is the title of the book? ")
title_it_rtn(title_input)<jupyter_output>What is the title of the book? eden<jupyter_text>Program: bookstore()create and test bookstore()- **bookstore() takes 2 string arguments: book & price**- **bookstore returns a string in sentence form** - **bookstore() should call title_it_rtn()** with book parameter  - **gather input for book_entry and price_entry to use in calling bookstore()**- **print the return value of bookstore()**>example of output: **`Title: The Adventures Of Sherlock Holmes, costs $12.99`**<jupyter_code># [ ] create, call and test bookstore() function
def bookstore(book, price):
    title_price = ("Title: " + book.title() + ", costs $" + price)
    return title_price
book_entry = input('What is the name of the book? ')
price_entry = input('What is the price of the book? ')
bookstore(book_entry, price_entry)<jupyter_output>What is the name of the book? eden
What is the price of the book? 14.99<jupyter_text>Fix the error<jupyter_code>def make_greeting(name, greeting = "Hello"):
    return (greeting + " " + name + "!")

# get name and greeting, send to make_greeting 


def get_name():
    name_entry = input("enter a name: ")
    return name_entry

def get_greeting():
    greeting_entry = input("enter a greeting: ")
    return greeting_entry
print(make_greeting(get_name(), get_greeting()))<jupyter_output>enter a name: Logan
enter a greeting: hello
hello Logan!
{'fraction_non_alphanumeric': 0.10954198473282442, 'fraction_numerical': 0.004198473282442748, 'mean_word_length': 4.785871964679911, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '377148', 'license': 'MIT', 'n_tokens_mistral': 811, 'n_tokens_neox': 797, 'n_words': 304, 'path': 'Python Absolute Beginner/Module_2.1_Practice.ipynb', 'repo_name': 'Logan-Gunnin/pythonteachingcode', 'size': '2620'}