Completed exercise 8-9 Messages
This commit is contained in:
parent
22c8c72221
commit
04509511c6
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