diff --git a/Chapter_08/8-03_t-shirt.py b/Chapter_08/8-03_t-shirt.py index 02b2977..580add6 100644 --- a/Chapter_08/8-03_t-shirt.py +++ b/Chapter_08/8-03_t-shirt.py @@ -2,6 +2,8 @@ # Learning Objective: Write a function with 2 arguments. def make_shirt(size='S', message='your text here'): + """Takes two string arguments of 'Size' and 'Message' and outputs the + resulting string""" print(f"\tNew shirt to be made:\n\tSIZE: {size}\n\tMESSAGE: {message}") make_shirt("L", "Hello Python World") diff --git a/Chapter_08/8-05_cities.py b/Chapter_08/8-05_cities.py index 5872914..afd7a85 100644 --- a/Chapter_08/8-05_cities.py +++ b/Chapter_08/8-05_cities.py @@ -2,6 +2,8 @@ # Learning Objective: Write a function that has a default value. Call it three times. def describe_city(city, country='United States'): + """Takes a city and a country (defaults to US) and returns it as a + string""" print(f'{city.title()} is in {country.title()}') describe_city('Chicago') diff --git a/Chapter_08/8-17_styling_functions.py b/Chapter_08/8-17_styling_functions.py new file mode 100644 index 0000000..c5a3bdb --- /dev/null +++ b/Chapter_08/8-17_styling_functions.py @@ -0,0 +1,9 @@ +# Exercise 8-17 Styling Functions +# Learning Objective: Ensure 3 of the programs written for Chapter 8 follow +# best practices and styling guidelines. + +# Confirmed Exercises: + # 8-03 T-Shirt + # 8-05 Cities + # 8-13 User Profile + \ No newline at end of file