12 lines
335 B
Python
12 lines
335 B
Python
# Exercise 3-2 Greetings
|
|
# Learning Objective: Use f-strings to print customized greetings to list members.
|
|
|
|
names = ['Tim', 'Steve', 'Aaron', 'Paul', 'Luke', 'Derek']
|
|
|
|
|
|
|
|
print(f"Hey there, {names[0]}.")
|
|
print(f"Hey there, {names[1]}.")
|
|
print(f"Hey there, {names[2]}.")
|
|
print(f"Hey there, {names[3]}.")
|
|
print(f"Hey there, {names[4]}.") |