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.
5 odpowiedzi
+ 2
use loops
+ 1
running=True
while running == True:
print("Random Word")
if input("Enter to run again") != "":
running=False
0
so i got it to repeat but now its not randomly generating the words on the next one, what do i do?
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.
0
Rick Morty You can just write "while True" you dont have to write while running == true