Question: Back in 2 0 1 6 , an augmented reality mobile game called Pokemon Go gained a lot of attention. Though the game is credited

Back in 2016, an augmented reality mobile game called Pokemon Go gained a lot of attention. Though the game is credited with good use of location-based AR, it also faced massive criticism. As the popularity of the game decreased gradually over time, the parent company Nintendo, the Pokemon Company, and Niantic are planning to hire professionals across different divisions who can help them popularize this game again. This problem is a possible test in the hiring process to see how excited a job candidate is about Pokemons.
You are given a CSV file called "pokemon.csv", downloadable from here. The file contains information about pokemons' names, types, attack powers, speed values, and capture rates in the game. The beginning of the file looks as follows:
name,type,attack,speed,capture_rate
Bulbasaur,grass,49,45,45
Ivysaur,grass,62,60,45
Venusaur,grass,100,80,45
Charmander,fire,52,65,45
You have to write a function called findPokemonInfo to find information about a particular pokemon from the file. Your function will take one string parameter called name and return a dictionary with information about that pokemon. The function definition will look as follows:
def findPokemonInfo(name):
For example, if we call this function as findPokemonInfo("Bulbasaur"), it should return the following dictionary:
attack: 49
capture_rate: 45
name: Bulbasaur
speed: 45
type: grass
(use python)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!