Facebook
From Areesa Shezad, 3 Years ago, written in Plain Text.
This paste is a reply to Assessment code from Areesa Shezad - go back
Embed
Viewing differences between Assessment code and Re: Assessment code
#Areesa Shezad
import random
print("Welcome to brain training")
print("You will be asked 10 questions")
name=input("Enter your name:")
nick=input("What is your nickname?")
print("Ok",name)
print("But i will call you",nick)
num1 = random.randint(1,5)
num2 = random.randint(1,10)
question=input(num1 and num2)
answer=input("What is your answer?")
computerAnswer= num1+num2
answer=int(answer)
 if answer==computerAnswer:
   print("correct")
 else:
   print("incorrect")
questionChoice=2
 if questionChoice==1
   print("add" num1 and num2)
elif questionChoice==2
   print("subtract" num1 and num2)
else questionChoice==3
   print("multiply"num1 and num2)
computerAnswer= num1 + num2
score=0
if score == computerAnswer then
    print("correct",score+1)
questionNumber=1