Is there a jump statement? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a jump statement?

I want to repeat a code or jump to line 1? Can you help me. I dont want to end the code after input/output. It should start from beginning :)))

6th Aug 2016, 9:37 AM
Andreas Kilian
Andreas Kilian - avatar
4 Answers
0
A (for) loop for the complete script?!
6th Aug 2016, 2:38 PM
Andreas Kilian
Andreas Kilian - avatar
0
Ofc just put the complete script inside the loop. It only requires some minor editing
6th Aug 2016, 3:47 PM
Gershon Fosu
Gershon Fosu - avatar
0
you need to use while True: your code with conditional break to exit of you want
6th Aug 2016, 4:25 PM
Kannan Vellaichami
Kannan Vellaichami - avatar
0
Ok cool thanks :)
6th Aug 2016, 9:09 PM
Andreas Kilian
Andreas Kilian - avatar