Completed / Renamed Exercise 8-2 Favorite Book
This commit is contained in:
parent
20f929d6e4
commit
483474f6e5
10
Chapter_08/8-02_favorite_book.py
Normal file
10
Chapter_08/8-02_favorite_book.py
Normal 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)
|
||||
Loading…
x
Reference in New Issue
Block a user