Utilisateur:Mathus
Révision datée du 25 octobre 2021 à 08:05 par Mathus (discussion | contributions)
<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)
while i<5 :
if reponse2 == pates[1]:
print("tu me degoute")
else :
print("bien")
reponse2 = input(pates)
i+1
if i == 5:
print("ca fait beaucoup de pates")
</syntaxhighlight lang = python >