I want to do a loop in python and how can i do a exit when?
In Turing what I want is
loop
put " Voulez vous jouer au 6-49 si oui entrez 'commencer' et n'oubliez pas qu'une "
put " partie coute 3$ " ..
color (green)
get word
color (black)
%Je clear l'ecrant
cls
put " Chargement en cour."
delay (500)
cls
put " Chargement en cour.."
delay (500)
cls
put " Chargement en cour..."
delay (500)
cls
%Je fais certain que le joueur a ecrit commencer
%Si il entre quelque choses d'autre que commencer le programme ne commence pas il demander de entre le mot commencer
exit when word = "commencer"
end loop
Now I need to do in Python but I don't know how to do that can someone help me out plzzz????
If I understand the semantics of the Turing code,
while True:
...
if word == "commencer":
break