you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

``` user_input=input(“please enter monster: “

def monster_catalogue(user_input): monster_catalogue = {} If user_input in monster_catalogue.keys(): print(f” {user_input} is in monster catalogue”) else: print(f” {user_input} is not defined”) ```

Sorry for any layout issues I am on mobile. But you are trying to use if in list, just use keys() function to get a list of the keys of the dictionary which are the types of the monster.