hash symbol in python

Solutions on MaxInterview for hash symbol in python by the best coders in the world

showing results for - "hash symbol in python"
Camilla
28 Feb 2016
1#Make a varible called score
2#Make inputs
3#Make answers and update scores
4#Show total score at the end
5score=0
6q1=(input("What is 1+1? : "))
7if q1 == "2" :
8  print ("CORRECT")
9  score=(score+1)
10else:
11  print ("INCORRECT")
12q2=(input("""The capital city of England is...
13
14a/Birmingham
15b/London
16c/Cardiff
17
18Enter your answer: """))
19if q2 == "b" :
20  print ("CORRECT")
21  score=(score+1)
22else:
23  print ("INCORRECT")
24q3=(input("7÷2="))
25if q3 == "3.5":
26  print ("CORRECT")
27  score=(score+1)
28else:
29  print ("INCORRECT")
30print ("You got", score, "out of 3!!!")