Relative Content

Tag Archive for pythonreplit

When user doesn’t follow the instructions my code crashes

I typed my code and it works fine but when I want to put parameters that limit and send an error message to the user when he or she uses a number outside 0,1,2 it crashes. I have tried multiple ways but it still doesn’t work. This was my last attempt. This are lines 46-47: