Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 38_pokedex_1.py #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion 7-classes-objects/38_pokedex_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ def display_details(self):
pikachu = Pokemon(25, 'Pikachu', ['Electric'], 'It has small electric sacs on both its cheeks. If threatened, it looses electric charges from the sacs.', True)
charizard = Pokemon(3, 'Charizard', ['Fire', 'Flying'], 'It spits fire that is hot enough to melt boulders. It may cause forest fires by blowing flames.', False)
gyarados = Pokemon(130, 'Gyarados', ['Water', 'Flying'], 'It has an extremely aggressive nature. The HYPER BEAM it shoots from its mouth totally incinerates all targets.', False)
bulbasaur = Pokemon(1, 'Bulbasaur', ['Grass', 'Poison'], 'A strange seed was planted on its back at birth. The plant sprouts and grows with this Pokemon.', True)
squirtle = Pokemon(7, 'Squirtle', ['Water'], 'When it retracts its long neck into its shell, it squirts out water with vigorous force.', True)
dragonite = Pokemon(149, 'Dragonite', ['Dragon', 'Flying'], 'It can circle the globe in just 16 hours. A kindhearted Pokemon, it leads lost and foundering ships in a storm to the safety of land.', False)

pikachu.speak()
charizard.speak()
gyarados.speak()
gyarados.speak()
bulbasaur.speak()
squirtle.speak()
dragonite.speak()