-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusercreater.py
executable file
·30 lines (24 loc) · 997 Bytes
/
usercreater.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python3
"""A short python example code being pulled and pushed onto
github"""
def main():
inapprnames = ["Booger", "PototaHead", "L33tskillz", "Camp"]
fname = input("Please enter in your first name: ")
lname = input("Please enter in your last name:")
usrname = input("Please enter in your 'appropiate' username: ")
while usrname == inapprnames():
usrname = input("Inappropiate name. \n Choose another: ")
setpass = input("Please create your password")
password = input("Please enter in your password: ")
count = 5;
while password != setpass and count > 0:
print("You have entered in the wrong password!\n")
print("You have %d tries left" % count)
count -= 1
password = input("Please enter it in again: ")
if count == 0:
print("You are temporarily blocked from entering your password")
else:
print("Yay you entered the correct password!")
if __name__ == "__main__":
main()