From 63b35c1352f063e29f331b2cddc73b31841fc389 Mon Sep 17 00:00:00 2001 From: Afonso Vale Date: Tue, 17 Oct 2023 22:03:48 +0100 Subject: [PATCH] Add spaces --- dateValidator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dateValidator.py b/dateValidator.py index 165908a..b1bc622 100644 --- a/dateValidator.py +++ b/dateValidator.py @@ -53,10 +53,10 @@ def checkYear(year): def main(): print('This program validates a date') - date= input('Enter your date in a dd/mm/yyyy format: ') - dateArray= date.split('/') - yearVal=checkYear(dateArray[2]) - monthVal=checkMonth(dateArray[1]) + date = input('Enter your date in a dd/mm/yyyy format: ') + dateArray = date.split('/') + yearVal = checkYear(dateArray[2]) + monthVal = checkMonth(dateArray[1]) if yearVal and monthVal: if checkDay(dateArray[0],dateArray[1],dateArray[2]): print('The date',date,'is correct!')