TypeError : randint() takes exactly 3 arguments (4 given)
<p>My code :</p>

<pre><code>import random
name=input("Welcome to this Arithmetic quiz,please enter your name:")
number1=random.randint(1, 50)   
number2=random.randint(1, 50)      
oper=random.randint('+', '-', '*')     
input('question 1 is:'+str(number1)+'oper'+str(number2)+'=')
</code></pre>

<p>For line 5 it gives me this error :</p>

<blockquote>
  <p>TypeError : randint() takes exactly 3 arguments (4 given)</p>
</blockquote>

<p>I am trying to create 2 random numbers with 1 random operation and input it together for the user.</p>

<p>When I input the question how will python know if the answer is right or wrong? Or do I have to say:</p>

<pre><code>if answer == True: 
    print('correct') 
else: 
    print('Incorrect')
</code></pre>