From c2ffc5819f99eb89ef85706c43d91dfff1998934 Mon Sep 17 00:00:00 2001 From: cheeks <134818917+leftovertoast@users.noreply.github.com> Date: Tue, 11 Feb 2025 08:04:12 -0500 Subject: [PATCH] Completed / RRenamed Exercise 8-2 Favorite Book --- Chapter_08/8-02_favorite_book.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Chapter_08/8-02_favorite_book.py diff --git a/Chapter_08/8-02_favorite_book.py b/Chapter_08/8-02_favorite_book.py new file mode 100644 index 0000000..4d7cfae --- /dev/null +++ b/Chapter_08/8-02_favorite_book.py @@ -0,0 +1,10 @@ +# Exercise 8-2 Favorite Book +# Learning Objective: Create a function that takes one argument. + +title = input("What is a good book?") + + +def favorite_book(title): + print(f"One of my favorite books is {title}") + +favorite_book(title) \ No newline at end of file