if-statement

mercredi 28 mars 2018

Elif Invalid Syntax error and output error

I keep trying to give the program a condition. If the day is < 0 and > 13 the program should stop and print "Incorrect month". If the month satisfies the conditions it should continue to the day question. However, if the day conditions aren't satisfied it should print "Incorrect day". When the program works it prints the month error correctly but when the day is wrong it prints both incorrect month and day.

I need it to print differently, like this. How do I fix this or write it?

Unknown à 02:10
Partager

Aucun commentaire:

Enregistrer un commentaire

‹
›
Accueil
Afficher la version Web

Qui êtes-vous ?

Unknown
Afficher mon profil complet
Fourni par Blogger.