0

How do you get a Python code to start from top once finished?

3rd Jun 2020, 3:17 PM
3.14
3.14 - avatar
3 Respuestas
+ 2
Python does read from the top. The output order will depend on what you have told it to do i.e. def funcone(): Print(1) def functwo(): Print(2) #it depends on the order you call: functwo() funcone() Output: 2 1 or if you mean to repeat the code then you could enclose it within a while loop or make sure it's a function and at the end use an if statement to recall it (start again).
3rd Jun 2020, 4:12 PM
Olivia
Olivia - avatar
+ 2
About what are you talking about please explain clearly.
3rd Jun 2020, 3:26 PM
Hacker Badshah
Hacker Badshah - avatar