What happens if you try to raise an exception using the raise keyword without specifying an exception?

  • It raises a 'NameError'
  • It raises a 'SyntaxError'
  • It raises a 'TypeError'
  • It raises a generic 'Exception'
If you raise an exception using the 'raise' keyword without specifying an exception type, it raises a generic 'Exception' with no message.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *