From 4583a3dc472f9f3f2d44ed6e6ea6e8b2c1f3113a Mon Sep 17 00:00:00 2001 From: Xaloc Date: Wed, 25 Nov 2020 11:47:06 +0100 Subject: [PATCH] change order + convert input to lower --- .gitignore | 1 + generator.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2211df6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.txt diff --git a/generator.py b/generator.py index bf0d471..d3a7447 100644 --- a/generator.py +++ b/generator.py @@ -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