Completed / RRenamed Exercise 8-2 Favorite Book

This commit is contained in:
cheeks 2025-02-11 08:04:12 -05:00
parent aa2e24a259
commit c2ffc5819f

View File

@ -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)