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

16 lines
565 B
Python

# Exercise 3-4 Guest List
# Learning Objective: Create a list of invites for dinner. Print an invitation to each person.
#Guest List Ex 3-4
guests = ['Tim', 'Steve', 'Aaron', 'Paul', 'Luke', 'Derek']
print(f"Hi there {guests[0]} please come over for dinner!")
print(f"Hi there {guests[1]} please come over for dinner!")
print(f"Hi there {guests[2]} please come over for dinner!")
print(f"Hi there {guests[3]} please come over for dinner!")
print(f"Hi there {guests[4]} please come over for dinner!")
print(f"Hi there {guests[5]} please come over for dinner!")