Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print 'Create your account below!'
- email = raw_input("Email address:")
- if len(email) > 0:
- print "Email address accepted! Please choose a username below!"
- if len(email) <= 0:
- print "Please provide an email address before proceeding."
- print 'Must be at least 6 characters, and include 1 number or symbol.'
- original = raw_input("username:")
- if len(original) >= 6 and original.isalpha():
- print "Please include at least 1 number or symbol and try again."
- elif len(original) < 6 and original.isalpha():
- print "Must be at least 6 characters, and include at least 1 number or symbol."
- elif len(original) < 6:
- print "Username requires at least 6 characters!"
- elif len(original) >= 6 and not original.isalpha():
- print "So you would like to make your username %s correct?" % (original)
- proceed = 5
- else:
- print "Please input before attempting to proceed."
- if proceed == 5:
- confirmation = raw_input("Yes/No:")
- if confirmation == "No" or confirmation == "no":
- print "Apologies please restart the account making process!"
- elif confirmation == "Yes" or confirmation == "yes":
- print "Congratulations! Your Username is now %s" % (original)
- variable = 6
- else:
- print "Please try again using the answers provided."
- if variable == 6:
- print 'Password must be at least 6 characters and include 1 number or symbol.'
- password = raw_input("Password:")
- if len(password) < 6 and password.isalpha():
- print "Password must be at least 6 characters and include 1 number or symbol."
- if len(password) < 6:
- print "Password must be at least 6 characters."
- if password.isalpha():
- print "Password must include 1 number or symbol."
- if len(password) >= 6 and not password.isalpha():
- tiger = 9
- if tiger == 9:
- password2 = raw_input("Confirm password:")
- if password2 != password:
- print "Password did not match during confirmation, please try again."
- if password2 == password:
- 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