Question: Purpose: To practice your ability to create and manipulate lists.Pokemon are fantastic creatures that people like to catch and train. For this question, you will

Purpose: To practice your ability to create and manipulate lists.Pokemon are fantastic creatures that people like to catch and train. For this question, you will write aprogram that allows the user to keep track of the Pokemon they have caught, and then assemble a teamfrom among the Pokemon caught that can be taken to the local Pokemon Gym for training.Your program will have two phases. When the program first starts, it should repeatedly show a prompt tothe user asking if they want to catch another Pokemon. Each time they say yes, the program should askthe user to enter the name of the Pokemon that was caught and it should be added to a list variable thatholds the users complete Pokemon collection. When they say no, the program should continue to thesecond phase.Get this part of the program working before going any further. Do not move on to the second part of theprogram until you know that the first part works.In the second phase, the program will display the current Pokemon collection, as well as a list of Pokemonthat have been added to the users Gym Team (initially, this second list will be empty). A prompt will thenask the user to name the Pokemon from their collection that they would like to add to the Gym Team. ThePokemon entered should be removed from the first list (the Pokemon collection) and added to the GymTeam list. This process should continue until EITHER (a) there are 6 Pokemon on the Gym Team, or (b) allof the Pokemon from the collection have already been added to the Gym Team.Sample RunHere is an example of how your programs console output might look. Green text was entered by the user. Time to catch some Pokemon !Which Pokemon have you caught ? pikachuWould you like to keep catching Pokemon ( y / n )? ySo far you ve caught :[ pikachu ]Which new Pokemon have you caught ? wobuffetWould you like to keep catching Pokemon ( y / n )? ySo far you ve caught :[ pikachu , wobuffet ]Which new Pokemon have you caught ? charmanderWould you like to keep catching Pokemon ( y / n )? ySo far you ve caught :[ pikachu , wobuffet , charmander ]Which new Pokemon have you caught ? bulbasaurWould you like to keep catching Pokemon ( y / n )? n~~~Time to head to the Pokemon Gym !~~~Pokemon in your collection :[ pikachu , wobuffet , charmander , bulbasaur ]Pokemon on your Gym Team :[]What Pokemon will you add to your team ? pikachuI CHOOSE YOU , PIKACHU !!Pokemon in your collection :[ wobuffet , charmander , bulbasaur ]Pokemon on your Gym Team :[ pikachu ]What Pokemon will you add to your team ? wobuffetI CHOOSE YOU , WOBUFFET !!

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!