Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. x = True
  2. while x == True:
  3. print ("Welcome To The Xmas Box Company's automated system!")
  4. response = input("Enter a customer ID, Q to quit ")
  5. print ("You Entered",(response) )
  6. last3 = (response[6:10])
  7. if len(response) != 9:
  8. print ("Input is not the correct length. Please try again")
  9. elif ((last3).isupper()) == True and len(response) == 9:
  10. print ("Identifier Accepted")
  11. quit()
  12. y = input("would you like to quit?")
  13. if y == "y" or "Y":
  14. quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement