Différences entre les versions de « Utilisateur:Mathus »
Aller à la navigation
Aller à la recherche
(Page créée avec « pates = ["Spaghetti ", "Penne", "tortellini", "Farfalle", "Fusilli", "Ravioles"] print("Aime tu les pates ?") reponse = input() i =0 if reponse == "non": print("... ») |
|||
| Ligne 1 : | Ligne 1 : | ||
| + | <syntaxhighlight lang = python > | ||
| + | |||
pates = ["Spaghetti ", "Penne", "tortellini", "Farfalle", "Fusilli", "Ravioles"] | pates = ["Spaghetti ", "Penne", "tortellini", "Farfalle", "Fusilli", "Ravioles"] | ||
| Ligne 25 : | Ligne 27 : | ||
reponse3 = input() | reponse3 = input() | ||
i+1 | i+1 | ||
| + | |||
| + | <syntaxhighlight lang = python > | ||
Version du 25 octobre 2021 à 07:36
<syntaxhighlight lang = python >
pates = ["Spaghetti ", "Penne", "tortellini", "Farfalle", "Fusilli", "Ravioles"]
print("Aime tu les pates ?")
reponse = input()
i =0
if reponse == "non":
print("Dans ce cas on à rien a se dire")
elif reponse == "oui":
print("très bien mais il y a beaucoup de pates differentes")
print("quels sont tes pates préféres ?")
reponse2 = input(pates)
if reponse2 == pates[1]:
print("tu me degoutte")
elif reponse2 != pates[1]:
print("bien")
reponse3 = input()
i+1
while i > 5 :
print("bien")
reponse3 = input()
i+1
<syntaxhighlight lang = python >