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

11 lines
341 B
Python

# Exeercise 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.')