Completed / RRenamed Exercise 8-2 Favorite Book
This commit is contained in:
parent
aa2e24a259
commit
c2ffc5819f
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