def main():
month = 0
date = 0
year = 0
date = [month, date, year]
user = input("Enter according to mm/dd/yy:")
user = user.split('/')
month = user[0]
date = user[1]
year = user[2]
while int(month) > 12 or int(month) < 1 :
print("Month is incorrect.")
user = input("Enter according to mm/dd/yy:")
while int(date) > 31 or int(date) < 0:
print("Date is incorrect.")
user = input("Enter according to mm/dd/yy:")
while int(year) > 15 or int(year) < 15:
print("Year is incorrect.")
user = input("Enter according to mm/dd/yy:")
I keep on getting Month incorrect when it's correct. Please help. I'm trying to get the user's input to match the correct form of mm/dd/yy. And I'm trying to convert yy -> 2015. Please help.
month,dateoryear...