Skip to content

Commit

Permalink
Add spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsoVale committed Oct 17, 2023
1 parent c81317c commit 63b35c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dateValidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!')
Expand Down

0 comments on commit 63b35c1

Please sign in to comment.