Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- approved_users = ["Rayna", "Monty", "Peter", "Alice", "Diane", "Georgie", "Harry", "smellybum"]
- print(len(approved_users))
- while True:
- print("Hi! My name is Travis, The super secure robot")
- name = input("Please tell me your name: ").strip().capitalize()
- if name in approved_users:
- print("Name recgnised, Welcome {}!").format(name)
- else:
- print("Warning!!! Name not reconised")
Add Comment
Please, Sign In to add comment