0

Does ayone know how to make a script repat itself?

Im creating a random word gerator but i wish to make itself repeat with a input but i dont know what to put.

6th Mar 2017, 4:56 PM
Matthew Williams
Matthew Williams - avatar
5 Respostas
+ 2
use loops
6th Mar 2017, 4:59 PM
Meharban Singh
Meharban Singh - avatar
+ 1
running=True while running == True: print("Random Word") if input("Enter to run again") != "": running=False
6th Mar 2017, 5:33 PM
LordHill
LordHill - avatar
0
so i got it to repeat but now its not randomly generating the words on the next one, what do i do?
7th Mar 2017, 3:56 PM
Matthew Williams
Matthew Williams - avatar
0
can you give us a little details about how are you doing it ? putting your code in "while True:"(without quotes) will make it repeat forever until an interrupt, break or exit statement is issued.
25th Apr 2017, 9:12 PM
learner
learner - avatar
0
Rick Morty You can just write "while True" you dont have to write while running == true
8th Oct 2018, 3:51 AM
Chaim
Chaim - avatar