Posts by joao medaca • 43 points
2 posts
-
1
votes3
answers3895
viewsA: Python date validation (tests)
You passed the tests now, follow my resolution: day, month, year = data.split("/") months_31 = ('01', '02', '03', '05', '07', '08', '10', '12') if (year >= '0001') and (month >= '01') and…
-
3
votes3
answers3895
viewsQ: Python date validation (tests)
I am trying to do a date validation with Python. My exercise asks for the validation of months with 31 days and leap year. def data_valida(data): #Valida data. Recebe uma string no formato…