mercredi 25 janvier 2017

how to call something everytime a parameter is inputted

I'm making a game in python, where I want certain user inputs, for example 'help' or 'menu' to print something to screen whenever a user inputs them. I'm sure that there is a better, more efficient way of doing this rather than adding an if statement at the end of every user prompt.

Sorry if this has already been answered, but I don't know what to search for.

Aucun commentaire:

Enregistrer un commentaire