# testValidDate # # This is a test driver to allow repeated testing of the validDate # function. It allows the user to enter dates, and for each date # calls validDate. It reports the value validDate returned # before entering the next date. def testValidDate(): month = input("Enter a month(1-12), or 0 to quit: ") while month != 0: day = input("Enter the day: ") year =input("Enter the year: ") message = validDate(month,day,year) if message == "": print "Date is valid" else: print message month = input("Enter a month(1-12), or 0 to quit: ") testValidDate()