python-crash-course/Chapter_03/3-02_greetings.py
2025-01-22 12:32:29 -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]}.")