python-crash-course/Chapter_05/5-08_hello_admin.py
2025-01-26 13:13:59 -05:00

11 lines
340 B
Python

# Exercise 5-8 Hello Admin
# Learning Objective: Selective if statement writing. (Reinforcement)
users = ['tex', 'spert', 'klumps20', 'porridgeboi', 'admin']
for user in users:
if user == 'admin':
print(f'Hello {user.title()}, would you like to see a report?')
else:
print(f'Hello {user.title()}, thank you for logging in again.')