PokéSwap

  • Download the following code, and get it to run. What You Should See


Misty sent out STARMIE!

STARMIE          Lv21
   HP [================]

What will PIKACHU do?
        1. Fight
        2. Swap Pokemon
        3. Run
>

Files Needed

What You Should Do on Your Own

Assignments turned in without these things will receive no credit.

  1. Write code where indicated that exchanges Pikachu (index 0) with Gyarados (index 3). Make sure the code works in such a way that it would still swap index 0 with index 3, no matter what values were in there to begin with. You’ll need to create an extra string variable.


©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