<filename>Arithmetic.py
student=input("Please Enter Your Name :: \n")
print("Questions:: \n")
import random
for questions in range(10):
  a= random.randint(0,5000)
  b= random.randint(0,5000)
  opt = computer=random.choice([ "-" , "+" , "*" , "/" ])
  print(a,opt,b)
  if opt=="+":
    ans=float(a+b)
  elif opt=="-":
    ans=float(a-b)
  elif opt=="*":
    ans=float(a*b)
  elif opt=="/":
    ans=float(a/b)  
  student=float(input("Please Enter Your Answer:: \n"))
  if student==ans:
    print("Correct")
  elif student!=ans:
    print("Incorrect")
 
  print()

<filename>Arithmetic.py
student=input("Please Enter Your Name :: \n")
print("Questions:: \n")
import random
for questions in range(10):
  a= random.randint(0,5000)
  b= random.randint(0,5000)
  opt = computer=random.choice([ "-" , "+" , "*" , "/" ])
  print(a,opt,b)
  if opt=="+":
    ans=float(a+b)
  elif opt=="-":
    ans=float(a-b)
  elif opt=="*":
    ans=float(a*b)
  elif opt=="/":
    ans=float(a/b)  
  student=float(input("Please Enter Your Answer:: \n"))
  if student==ans:
    print("Correct")
  elif student!=ans:
    print("Incorrect")
 
  print()
