PCAP - Certified Associate in Python Programming Practice Test
PCAP Exception Handling 3
What is the purpose of the `assert` statement in Python?
Select your answer
A
To raise a KeyError
B
To test a condition and raise AssertionError if false
C
To skip code blocks
D
To assign default values
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49