PokéTrader 2

Download the following code, and get it to compile.

Files Needed

What You Should See

EXCHANGE POKEMON

    0. PIKACHU
    1. CHARMELEON
    2. GEODUDE
    3. GYARADOS
    4. BUTTERFREE
    5. MANKEY

Choose a Pokemon (or -1 to quit). => 1
Choose a Pokemon to exchange with CHARMELEON. => 5

Exchanging CHARMELEON with MANKEY.

EXCHANGE POKEMON

    0. PIKACHU
    1. MANKEY
    2. GEODUDE
    3. GYARADOS
    4. BUTTERFREE
    5. CHARMELEON

Choose a Pokemon (or -1 to quit). => -1

What You Should Do on Your Own

Assignments turned in without these things will receive no credit.

  1. Write code where indicated that exchanges the two selected Pokémon.


©2021 Daniel Gallo

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.

Creative Commons License

Adapted for Python from Graham Mitchell’s Programming By Doing