Comment faire un menu qui revient après chaque action ?
Placez choisir dans une boucle et sortez avec arrête (ou terminer) quand l'utilisateur choisit « Quitter » :
choix est un nombre
tant que vrai
choisir ['Dire bonjour', 'Lancer un dé', 'Quitter'] dans choix
si choix = 1 alors
affiche 'Bonjour !'
sinon si choix = 2 alors
affiche 'Dé : ' + hasard(1, 6)
sinon
arrête
fin si
fin tant que
affiche 'Au revoir'