(Hackerrank) HackerRank Python Certification Practice Test
Hackerrank File I/O and Exception Handling 5
What is the correct way to raise a custom exception with a message in Python?
Select your answer
A
raise Exception.new('msg')
B
throw Exception('msg')
C
raise Exception('msg')
D
error Exception('msg')
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 HACKERRANK Flashcards — Study This Quiz as Flip Cards →
📚 Want to go deeper? Read the Full HACKERRANK Study Guide →