Completed exercise 8-9 Messages
This commit is contained in:
parent
57dc6fae9b
commit
d6c6908538
10
Chapter_08/8-09_messages.py
Normal file
10
Chapter_08/8-09_messages.py
Normal file
@ -0,0 +1,10 @@
|
||||
# Exercise 8-9 Messages
|
||||
# Learning Objective: Pass a list to a function.
|
||||
|
||||
texts = ['hello', 'how are you?', 'i am well thanks']
|
||||
|
||||
def show_messages(messages):
|
||||
for message in messages:
|
||||
print(message)
|
||||
|
||||
show_messages(texts)
|
||||
Loading…
x
Reference in New Issue
Block a user