File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66ravenclaw = 0
77slytherin = 0
88
9- print (" ===============" )
10- print (" The Sorting Hat" )
11- print (" ===============" )
9+ print (' ===============' )
10+ print (' The Sorting Hat' )
11+ print (' ===============' )
1212
1313# ~~~~~~~~~~~~~~~ Question 1 ~~~~~~~~~~~~~~~
1414
15- print (" Q1) Do you like Dawn or Dusk?" )
15+ print (' Q1) Do you like Dawn or Dusk?' )
1616
17- print (" 1) Dawn" )
18- print (" 2) Dusk" )
17+ print (' 1) Dawn' )
18+ print (' 2) Dusk' )
1919
20- answer = int (input (" Enter answer (1-2): " ))
20+ answer = int (input (' Enter answer (1-2): ' ))
2121
2222if answer == 1 :
2323 gryffindor += 1
2626 hufflepuff += 1
2727 slytherin += 1
2828else :
29- print (" Wrong input." )
29+ print (' Wrong input.' )
3030
3131# ~~~~~~~~~~~~~~~ Question 2 ~~~~~~~~~~~~~~~
3232
3333print ("\n Q2) When I'm dead, I want people to remember me as:" )
3434
35- print (" 1) The Good" )
36- print (" 2) The Great" )
37- print (" 3) The Wise" )
38- print (" 4) The Bold" )
35+ print (' 1) The Good' )
36+ print (' 2) The Great' )
37+ print (' 3) The Wise' )
38+ print (' 4) The Bold' )
3939
40- answer = int (input (" Enter your answer (1-4): " ))
40+ answer = int (input (' Enter your answer (1-4): ' ))
4141
4242if answer == 1 :
4343 hufflepuff += 1
4848elif answer == 4 :
4949 gryffindor += 1
5050else :
51- print (" Wrong input." )
51+ print (' Wrong input.' )
5252
5353# ~~~~~~~~~~~~~~~ Question 3 ~~~~~~~~~~~~~~~
5454
55- print (" \n Q3) Which kind of instrument most pleases your ear?" )
55+ print (' \n Q3) Which kind of instrument most pleases your ear?' )
5656
57- print (" 1) The violin" )
58- print (" 2) The trumpet" )
59- print (" 3) The piano" )
60- print (" 4) The drum" )
57+ print (' 1) The violin' )
58+ print (' 2) The trumpet' )
59+ print (' 3) The piano' )
60+ print (' 4) The drum' )
6161
62- answer = int (input (" Enter your answer (1-4): " ))
62+ answer = int (input (' Enter your answer (1-4): ' ))
6363
6464if answer == 1 :
6565 slytherin += 1
7070elif answer == 4 :
7171 gryffindor += 1
7272else :
73- print (" Wrong input." )
73+ print (' Wrong input.' )
7474
7575print (gryffindor )
7676print (ravenclaw )
7777print (hufflepuff )
7878print (slytherin )
7979
8080if gryffindor >= ravenclaw and gryffindor >= hufflepuff and gryffindor >= slytherin :
81- print (" 🦁 Gryffindor!" )
81+ print (' 🦁 Gryffindor!' )
8282elif ravenclaw >= hufflepuff and ravenclaw >= slytherin :
83- print (" 🦅 Ravenclaw!" )
83+ print (' 🦅 Ravenclaw!' )
8484elif hufflepuff >= slytherin :
85- print (" 🦡 Hufflepuff!" )
85+ print (' 🦡 Hufflepuff!' )
8686else :
87- print (" 🐍 Slytherin!" )
87+ print (' 🐍 Slytherin!' )
You can’t perform that action at this time.
0 commit comments