Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(use python) The Pokmon Trading Card Game (Japanese: ??????????, Pokmon Card Game), often abbreviated as Pokmon TCG or just TCG, is a tabletop game that

(use python)

The Pokmon Trading Card Game (Japanese: ??????????, Pokmon Card Game), often abbreviated as Pokmon TCG or just TCG, is a tabletop game that involves collecting, trading and playing with Pokmon themed playing cards. It has its own set of rules but uses many motifs and ideas derived from the video games. There are Pokmon cards for every species of Pokmon, as well as Trainer cards featuring characters, items and other themes of the franchise (each with a different use) and Energy cards to power various actions. The game is part of the Play! Pokmon organized play along with the video game series and is also used in the Pokmon Trading Card Game Online. The following is a small list of these Pokmon.

Pokemon

HP

Atk

Def

SpA

SpD

Spe

Total

Type I

Arceus

120

120

120

120

120

120

720

Normal

Mewtwo

106

110

90

154

90

130

680

Psychic

Lugia

106

90

130

90

154

110

680

Psychic

Ho-oh

106

130

90

110

154

90

680

Fire

Rayquaza

105

150

90

150

90

95

680

Dragon

Dialga

100

120

120

150

100

90

680

Steel

Palkia

90

120

100

150

120

100

680

Water

Giratina

150

100

120

100

120

90

680

Ghost

Reshiram

100

120

100

150

120

90

680

Dragon

Zekrom

100

150

120

120

100

90

680

Dragon

Xerneas

126

131

95

131

98

99

680

Fairy

Yveltal

126

131

95

131

98

99

680

Dark

Solgaleo

137

137

107

113

89

97

680

Psychic

Lunala

137

113

89

137

107

97

680

Psychic

I converted this table into 9 lists as follow (one of them is empty, and pay attention the data types of the other lists)

Pokemons= ["Arceus" , "Mewtwo" , "Lugia" , "Ho-oh" , "Rayquaza" , "Dialga" , "Palkia" , "Giratina" , "Reshiram" , "Zekrom" , "Xerneas" , "Yveltal" , "Solgaleo" , "Lunala"] Types = [ "Normal," , "Psychic," , "Psychic," , "Fire," , "Dragon," , "Steel," , "Water," , "Ghost," , "Dragon," , "Dragon," , "Fairy," , "Dark," , "Psychic," , "Psychic"] HitPoints = ["120" , "106" , "106" , "106" , "105" , "100" , "90" , "150" , "100" , "100" , "126" , "126" , "137" , "137"] Attack = ["120" , "110" , "90" , "130" , "150" , "120" , "120" , "100" , "120" , "150" , "131" , "131" , "137" , "113"] Defence = ["120" , "90" , "130" , "90" , "90" , "120" , "100" , "120" , "100" , "120" , "95" , "95" , "107" , "89"] SpecialAttack = ["120" , "154" , "90" , "110" , "150" , "150" , "150" , "100" , "150" , "120" , "131" , "131" , "113" , "137"] SpecialDefense= ["120" , "90" , "154" , "154" , "90" , "100" , "120" , "120" , "120" , "100" , "98" , "98" , "89" , "107"] Speed = ["120" , "130" , "110" , "90" , "95" , "90" , "100" , "90" , "90" , "90" , "99" , "99" , "97" , "97"] Total = [ ]

Copy these lists into your main function inside your python file.

Now Perform the following functions:

Define a function called PsychicPokmon. The function does not receive anything and it returns a list.

The function creates a list of all the Pokmon names (in uppercase format) that have the type psychic. By the end of the function, returns back the list.

Call the function from the main function and print the returned result line by line.

Define a function called FindBestDefender. The function receives 2 lists (the Pokmon and the Defense) and it returns back one string value.

The function finds the name of the Pokmon who has the best defending power. Then it returns that name back.

Call the function from the main function and print the returned result in a proper name.

Define a function called FindTotalPower. The function receives 7 lists (the lists of HitPoints, Attack, Defense, SpecialAttack, SpecialDefense, Speed, and Total) and it does not return anything.

The function fills the total list, by finding every Pokmons power through finding the total of all the other 6 lists value.

Call the function from the main function and print the Total list values line by line (Compare your results to the result of the excel sheet)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions