I'm new in Python.
Hello Admin:
Make a list of five or more usernames, including the name 'admin'. Imagine you are writing code that will print a greeting to each user after they log in to a website. Loop through the list, and print a greeting to each user:
• If the username is 'admin', print a special greeting, such as Hello admin, would you like to see a status report?
• Otherwise, print a generic greeting, such as Hello Eric, thank you for logging in again.
Code:
u = input('Enter Username: ').title()
for user in usernames:
if u in user == 'Admin':
print('Welcom admin')
if u in user:
print('In list')
else:
print('Not in list')
