python-crash-course/Chapter_03/3-2_greetings.py
2025-01-20 16:39:02 -05:00

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]}.")