Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- full_name = first_name + " " + second_name
- while full_name != "Name Name":
- for full_name in "Namer Name":
- print("Hey! Welcome Back!!!")
- input(full_name + " is not recognised, please go away.n")
- good_people = {"Jim Jones", "Haile Selassie", "Papa Doc"}
- def pause(prompt="Hit Enter to continue:"):
- input(prompt)
- def main():
- first_name = input("What's your first name? ")
- last_name = input("What's your last name? ")
- full_name = first_name.strip() + " " + last_name.strip()
- if full_name in good_people:
- print("Welcome back, {}!".format(first_name))
- # you are now logged in
- else:
- print("I don't know any {}, go away!".format(full_name))
- pause()
- if __name__=="__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement