change order + convert input to lower
This commit is contained in:
parent
9fd5e2de4c
commit
4583a3dc47
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.txt
|
|
@ -1,7 +1,7 @@
|
|||
from itertools import combinations
|
||||
|
||||
def clean_input(txt):
|
||||
txt = str(txt).replace(" ","")
|
||||
txt = str(txt).replace(" ","").lower()
|
||||
return txt
|
||||
|
||||
def extract_date(txt):
|
||||
|
@ -27,8 +27,8 @@ def allcaps(x):
|
|||
|
||||
firstName = clean_input(input("First Name: "))
|
||||
lastName = clean_input(input("Last Name: "))
|
||||
nickName = clean_input(input("Nick Name: "))
|
||||
middleName = clean_input(input("Middle Name: "))
|
||||
nickName = clean_input(input("Nick Name: "))
|
||||
birthDate = clean_input(input("Birth Date (DDMMYYYY): "))
|
||||
day,month,year_long,year_short = extract_date(birthDate)
|
||||
birthDate = day+month+year_short
|
||||
|
|
Loading…
Reference in New Issue
Block a user