Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions cupp.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,19 +312,19 @@ def interactive():

profile = {}

name = input("> First Name: ").lower()
while len(name) == 0 or name == " " or name == " " or name == " ":
name = input("> First Name: ").lower().strip()
while len(name) == 0:
print("\r\n[-] You must enter a name at least!")
name = input("> Name: ").lower()
profile["name"] = str(name)
name = input("> Name: ").lower().strip()
profile["name"] = name

profile["surname"] = input("> Surname: ").lower()
profile["nick"] = input("> Nickname: ").lower()
birthdate = input("> Birthdate (DDMMYYYY): ")
while len(birthdate) != 0 and len(birthdate) != 8:
print("\r\n[-] You must enter 8 digits for birthday!")
birthdate = input("> Birthdate (DDMMYYYY): ")
profile["birthdate"] = str(birthdate)
profile["birthdate"] = birthdate

print("\r\n")

Expand All @@ -334,7 +334,7 @@ def interactive():
while len(wifeb) != 0 and len(wifeb) != 8:
print("\r\n[-] You must enter 8 digits for birthday!")
wifeb = input("> Partners birthdate (DDMMYYYY): ")
profile["wifeb"] = str(wifeb)
profile["wifeb"] = wifeb
print("\r\n")

profile["kid"] = input("> Child's name: ").lower()
Expand All @@ -343,7 +343,7 @@ def interactive():
while len(kidb) != 0 and len(kidb) != 8:
print("\r\n[-] You must enter 8 digits for birthday!")
kidb = input("> Child's birthdate (DDMMYYYY): ")
profile["kidb"] = str(kidb)
profile["kidb"] = kidb
print("\r\n")

profile["pet"] = input("> Pet's name: ").lower()
Expand Down