what is the reason for my code to do this? (im using python)
Welcome to Ask! The problem with your code is that you have not added anything to your function
fight defined on line
64, and Python expects the function to do something. You can add
pass as a placeholder for now so as to prevent such errors. You’ll want to do the same for
choose_weapon and any other empty functions.
Python requires that something has to be in the function body. Comments don’t count.
A few ways to define an empty function:
def choose_weapon(): pass def choose_weapon(): ... def choose_weapon(): """Prompts the player to choose a weapon."""