Completed 5-8 Hello Admin
This commit is contained in:
parent
fe2431c0c0
commit
b1c049dfd9
10
Chapter_05/5-08_hello_admin.py
Normal file
10
Chapter_05/5-08_hello_admin.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# 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.')
|
||||||
Loading…
x
Reference in New Issue
Block a user