So, I am hoping that I'm not giving away too much here, but this is only my first answer on this site, so I am hoping a moderator will let me know if I am within the bounds of what is considered an acceptable amount of help. Anyhow, here is a code snipit that I created to
test if the variable x is equal to 1 without using any if statements. It should at least give you a way to get around the rather odd requirement of not using if statements. It also seems to handle some of the exception handling as well. I have no idea if this is anything like what your assignment is looking for, but I hope it gives you a starting point. You will still need to figure out how to get the user's input into the variable x, and expand the program as necessary to handle all the other various cases. You will also need to ensure that it is in line with what your assignment is looking for, and that it works correctly.
You should also check to see if your course has even covered the applicable subject material yet. If you haven't yet covered lambda or the "pass" keyword, this may not be what your assignment is looking for. I have also included the sources of where I found the various pieces that I used to build this snipit, so you should check those out as well to see how I figured out how to put the pieces together.
Anyhow, without further ado, here is the code snipit and sources and description:
Also, I tested this code snipit in Python version 3.6.9, so hopefully it should work on your machine.
I hope that helps.