This is the code I currently have and what I want to do is take the input str. (EnemyFighting) and I want to search and print all the items inside of a dictionary that has the same name as what the player inputted.
EnemyFighting = input('Out of the enemies on the list which one do you want to fight? \n')
for item in EnemyList:
if EnemyFighting.title() == item:
print('Succesfully chosen ' + EnemyFighting.title())
EnemySuccesfullyFound = True
print(EnemySuccesfullyFound)
break
else:
EnemySuccesfullyFound = False
if EnemySuccesfullyFound == True:
for key, value in (EnemyFighting.title()).items():
print(key, + ': ' + str(value))
I'm doing this because I want to display the stats of the enemy before you start fighting (It's a terminal game btw)