Compare commits

...

2 Commits

Author SHA1 Message Date
cheeks
c2ffc5819f Completed / RRenamed Exercise 8-2 Favorite Book 2025-02-11 08:04:12 -05:00
cheeks
aa2e24a259 Renamed 8-1 t follow two digit naming convention for uniformity 2025-02-11 08:02:59 -05:00
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# Exercise 8-1 Message
# Leaning Objective: Create a simple function
def display_message():
print("This chapter is about functions!")
display_message()

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)