Advertisement
Guest User

Code

a guest
Nov 18th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. print 'Create your account below!'
  2. email = raw_input("Email address:")
  3. if len(email) > 0:
  4. print "Email address accepted! Please choose a username below!"
  5. if len(email) <= 0:
  6. print "Please provide an email address before proceeding."
  7. print 'Must be at least 6 characters, and include 1 number or symbol.'
  8. original = raw_input("username:")
  9. if len(original) >= 6 and original.isalpha():
  10. print "Please include at least 1 number or symbol and try again."
  11. elif len(original) < 6 and original.isalpha():
  12. print "Must be at least 6 characters, and include at least 1 number or symbol."
  13. elif len(original) < 6:
  14. print "Username requires at least 6 characters!"
  15. elif len(original) >= 6 and not original.isalpha():
  16. print "So you would like to make your username %s correct?" % (original)
  17. proceed = 5
  18. else:
  19. print "Please input before attempting to proceed."
  20. if proceed == 5:
  21. confirmation = raw_input("Yes/No:")
  22. if confirmation == "No" or confirmation == "no":
  23. print "Apologies please restart the account making process!"
  24. elif confirmation == "Yes" or confirmation == "yes":
  25. print "Congratulations! Your Username is now %s" % (original)
  26. variable = 6
  27. else:
  28. print "Please try again using the answers provided."
  29. if variable == 6:
  30. print 'Password must be at least 6 characters and include 1 number or symbol.'
  31. password = raw_input("Password:")
  32. if len(password) < 6 and password.isalpha():
  33. print "Password must be at least 6 characters and include 1 number or symbol."
  34. if len(password) < 6:
  35. print "Password must be at least 6 characters."
  36. if password.isalpha():
  37. print "Password must include 1 number or symbol."
  38. if len(password) >= 6 and not password.isalpha():
  39. tiger = 9
  40. if tiger == 9:
  41. password2 = raw_input("Confirm password:")
  42. if password2 != password:
  43. print "Password did not match during confirmation, please try again."
  44. if password2 == password:
  45. print "Congratulations your account has been created! A confirmation email has been sent to %s." % (email)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement