Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. full_name = first_name + " " + second_name
  2. while full_name != "Name Name":
  3. for full_name in "Namer Name":
  4. print("Hey! Welcome Back!!!")
  5. input(full_name + " is not recognised, please go away.n")
  6.  
  7. good_people = {"Jim Jones", "Haile Selassie", "Papa Doc"}
  8.  
  9. def pause(prompt="Hit Enter to continue:"):
  10. input(prompt)
  11.  
  12. def main():
  13. first_name = input("What's your first name? ")
  14. last_name = input("What's your last name? ")
  15.  
  16. full_name = first_name.strip() + " " + last_name.strip()
  17.  
  18. if full_name in good_people:
  19. print("Welcome back, {}!".format(first_name))
  20. # you are now logged in
  21. else:
  22. print("I don't know any {}, go away!".format(full_name))
  23. pause()
  24.  
  25. if __name__=="__main__":
  26. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement