O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

5-8. Hello Admin:

From

Cover of Python Crash Course

Note

usernames = ['admin', 'donald trump', 'barak', 'Kanye West']
admin = "Hello admin, would you like to see a status report?"
normal = "Hello "
greetings = map(lambda x : admin if x == 'admin' else normal + x, usernames)
for greeting in greetings:
print(greeting)