Hey there, people!
I was playing Pokemon and got frustrated about always having to look on Google about types weaknessess (my memory is horrible these days) so I decided to try to create a little program to help me with it.
I have two different files, one where the program actually is and the other is just each typing is with it's weaknessess and subsequent damage multiplier.
I'll give an example, on the Type_effect file, one of tthe entries is as follows:
ice = {("Fire", 2), ("Ice", 0.5), ("Rock", 2), ("Steel", 2)}
Now my question.
On my main file, I created a function that request the user to fill the desired type it wants to look up and matches it with the correct list on the Type_Effect file.
Using the example above, how could I print 2 different lines saying that "ice" is resistant to "Ice" due to the 0.5 parameter and another line printing that it weak against the other three due to the 2 parameter?
I'll send the current function too!
Thanks!
def defending_single(defending_type, multiplier):
# Calculates the best attacks against single defending type
defender_type = str(input("What is the defender type? \n"))
if defender_type.lower in Type_Effect:
