-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWhose_that_Pokemon.py
More file actions
54 lines (42 loc) · 1.63 KB
/
Whose_that_Pokemon.py
File metadata and controls
54 lines (42 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
def check_guess(guess,answer):
global score
still_gussing = True
attempt = 0
while still_gussing and attempt < 3:
if guess.lower() == answer.lower():
print("Correct Answer ")
score = score + 1
still_gussing = False
else:
if attempt < 2:
guess = input("Sorry Wrong Answer, Try Again ")
attempt = attempt + 1
if attempt == 3:
print("The Correct Answer is ", answer)
score = 0
print(" WHO'S THAT POKEMON ")
# Quesion 1
guess1 = input("Which Electric type Pokémon is Ash's best friend? ")
check_guess(guess1, "Pikachu")
# Question 2
guess2 = input("Which Fire type Pokémon evolves from Charmander and breathes fire from its mouth? ")
check_guess(guess2, "Charizard")
# Question 3
guess3 = input("Which Water type turtle Pokémon can shoot water from its mouth? ")
check_guess(guess3, "Squirtle")
# Question 4
guess4 = input("Which Grass type Pokémon has a plant on its back and is one of the first starters? ")
check_guess(guess4, "Bulbasaur")
# Question 5
guess5 = input("Which cute Normal type Pokémon can evolve into many different forms? ")
check_guess(guess5, "Eevee")
# Question 6
guess6 = input("Which Legendary Pokémon was created by scientists and is extremely powerful? ")
check_guess(guess6, "Mewtwo")
# Question 7
guess7 = input("Which big, lazy Pokémon loves sleeping and eating, often blocking paths? ")
check_guess(guess7, "Snorlax")
# Question 8
guess8 = input("Which kind-hearted orange dragon Pokémon can fly and is very strong? ")
check_guess(guess8, "Dragonite")
print(f" YOUR SCORE IS {score}")