Comment faire un carnet d'adresses ?
carnet est un dictionnaire
nom, tel est un texte
choix est un nombre
tant que vrai
choisir ['Ajouter', 'Chercher', 'Quitter'] dans choix
si choix = 1 alors
demande 'Nom ?' dans nom
demande 'Téléphone ?' dans tel
carnet[nom] vaut tel
sinon si choix = 2 alors
demande 'Nom ?' dans nom
si contient(carnet, nom) alors
affiche carnet[nom]
sinon
affiche 'Inconnu'
fin si
sinon
arrête
fin si
fin tant que