Compare commits
2 Commits
f07caec070
...
c2ffc5819f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2ffc5819f | ||
|
|
aa2e24a259 |
7
Chapter_08/8-01_message.py
Normal file
7
Chapter_08/8-01_message.py
Normal 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()
|
||||
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