Skip to content
Advertisement

How do I make a program keep repeating until I input a specific data that stops it?

I’m trying to make a program in python so that when I input a number from 1 to 10, a specific set of program goes on and asks for another number from 1 to 10 and runs another program, until I enter 0(zero) and the program stops.

So my guess was using a while loop but it didn’t quite work out.

JavaScript

Advertisement

Answer

Here it is:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement