fork(2) download
  1. input_id = input("Input your id.\n")
  2. def login(_id):
  3. members = ['egoing', 'k8805', 'leezche']
  4. for member in members:
  5. if member == _id:
  6. return True
  7. return False
  8. if login(input_id):
  9. print('Hello, '+input_id)
  10. else:
  11. print('Who are you?')
  12.  
Success #stdin #stdout 0.02s 8736KB
stdin
egoing
stdout
Input your id.
Hello, egoing