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