vendredi 1 janvier 2021

How to conduct an if/elif/else statement [closed]

I have a problem. I am not getting on so well with the If statements. Of course I can work with numbers and can write simple programs where you have to look whether a number is smaller, larger or the same. Today I wanted to write a program that resembles a conversation where there are questions and perfect answers. For example, the program asks if "you want to go out" and then you answer with "yes" to which the program answers with "Oh that's nice". But if you say "no", the program answers with " Oh what a shame ". You can suggest any route (I'm new).

Aucun commentaire:

Enregistrer un commentaire