hash symbol in python code example

Example: hash symbol in python

#Make a varible called score
#Make inputs
#Make answers and update scores
#Show total score at the end
score=0
q1=(input("What is 1+1? : "))
if q1 == "2" :
  print ("CORRECT")
  score=(score+1)
else:
  print ("INCORRECT")
q2=(input("""The capital city of England is...

a/Birmingham
b/London
c/Cardiff

Enter your answer: """))
if q2 == "b" :
  print ("CORRECT")
  score=(score+1)
else:
  print ("INCORRECT")
q3=(input("7÷2="))
if q3 == "3.5":
  print ("CORRECT")
  score=(score+1)
else:
  print ("INCORRECT")
print ("You got", score, "out of 3!!!")

Tags:

Misc Example