Implementation of #2.
I introduced some global variables. Some, you can parameterize, others, you can't.
Also, there's some magic numbers there, which you can create constants for.
I removed the try-except from #1. You can reintroduce it, but i REALLY don't recommend you do it in the same way as before.
You can also use a numpy array to store the pokemon names, i guess. It should be better.
Implementation of #2. I introduced some global variables. Some, you can parameterize, others, you can't. Also, there's some magic numbers there, which you can create constants for. I removed the try-except from #1. You can reintroduce it, but i REALLY don't recommend you do it in the same way as before. You can also use a numpy array to store the pokemon names, i guess. It should be better.