Question: I need help fixing my code: the # 4 looping is where I am struggling. When put into IDLE, the code prints out this: r
I need help fixing my code:
the #looping is where I am struggling. When put into IDLE, the code prints out this:
r is Pokemon # I caught!
i is Pokemon # I caught!
a is Pokemon # I caught!
f is Pokemon # I caught!
e is Pokemon # I caught!
l is Pokemon # I caught!
C is Pokemon # I caught!
I am trying to have it print out the names of all pokemon starting with the last one like so:
Clefairy is Pokemon # that I caught!
Sandshrew is Pokemon # that I caught!
etc...
#creating a tuple with the names of pokemon
PokemonPikachu 'Charmander', 'Caterpie', 'Bulbasaur', 'Squirtle', 'Eevee',
'Vulpix', 'Ponyta', 'Arcanine', 'Weedle', 'Pidgey', 'Rattata', 'Ekans',
'Sandshrew', 'Clefairy'
#looping in reverse order using format method
for i in rangelenPokemon:
print is Pokemon # I caught!formatPokemonii
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
