assert average(4, 6) == 5.0 does what if the function returns 7.0?
- stops with an AssertionError
- returns True
- prints 7.0
- nothing
Answer
A) stops with an AssertionError
assert raises AssertionError when the condition is False. SLO CS-11-C-07
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise