[Solved] How would I end a program in python [closed]


Try using a while loop.

counter = 0
while counter < 15:
    if guess == number:
        break
    counter += 1
    guess = int(input('Input your new guess'))

solved How would I end a program in python [closed]