'int' object has no attribute 'sub'?
<p>Hey could you guys help me out? This is a very important program and I ran into this error?</p>
<h1>start of program</h1>
<pre><code>import random
import operator
print(&quot;Welcome to the Primary Maths Test!&quot;)
while True:
    number1 = random.randint(1,12)
    number2 = random.randint(1,12)
    operator = random.randint(1,3)
    if operator == 1:
        operator.add(number1,number2)
    else:
        operator.sub(number1,number2)
        
</code></pre>