Write a simple looping program
<p>I want to write a program with this logic.</p>

<pre><code>A value is presented of the user.
Commence a loop
    Wait for user input
    If the user enters the displayed value less 13 then
       Display the value entered by the user and go to top of loop.
    Otherwise exit the loop
</code></pre>

<p>You just need two <code>while</code> loops. One that keeps the main program going forever, and another that breaks and resets the value of <code>a</code> once an answer is wrong.</p>

<pre><code>while True:
    a = 2363
    not_wrong = True

    while not_wrong:
        their_response = int(raw_input("What is the value of {} - 13?".format(a)))
        if their_response == (a - 13):
            a = a -13
        else:
            not_wrong = False
</code></pre>

python