I am currently reading tutorials in tutorialspoint's python tutorials. But it's the tutorial of Python 2 not Python 3.3 which I have right now. Well, I managed to search in the internet and found out about some changes. But this one is pretty tough.
So, in tutorialspoint the python source code for raising an exception is:
def functionName( level ):
if level < 1:
raise "Invalid level!", level
# The code below to this would not be executed
# if we raise the exception
But if I type
raise "Invalid level!", level
it says syntax error. So, I want to know how I raise an exception in Python 3.3.