Inserting a stop statement
<p>How can I get this program to stop at when the number <strong>13</strong> is entered?</p>

<pre><code>print "\t:-- Enter a Multiplication --: \n"
x = ("Enter the first number: ")                                    
y = ("Enter your second number to multiply by: ")

for total in range(1, 12):
        x = input("Enter a number: ")
        y = input("Multiplied by this: ")
        print "\n  TOTAL: "
        print x, "X", y, "=", (x * y)


#Exits the program.
raw_input("\t\tPress Enter to Exit")
</code></pre>

<p>If I understand what you are trying to do here, I think an if statement would be a better solution. Something like this:</p>

<pre><code>print("Enter a multiplication")
x = int(input("Enter a number: "))
y = int(input("Multiplied by this: "))


def multiply(x, y):
    if 1 &lt; x &lt; 13 and 1 &lt; y &lt; 13:
        answer = x * y

        print("Total:")
        print("%s X %s = %s" % (x, y, answer))
    else:
        print("Your number is out of range")

multiply(x, y)
</code></pre>

<p>But to be honest, there are quite a few parts of your code that some work.</p>

python