Hello, I have a question about an assignment in my programming course
I need to create an exception so that only integer numbers can be accepted
raise should be included
This is what I have until now...
Thank you very much !

I need to create an exception so that only integer numbers can be accepted
raise should be included
This is what I have until now...
n = int((input("Eingabe: "))) if n != int: raise ValueError("Please enter an integer")I don't necessarily want a ready-made solution, preferably an explanation of how I get my solution
Thank you very much !
