Time is over! You can keep submitting you assignments, but they won't compute for the score of this quiz.
Knock 3 times
Modify the while loop in the function
knock_three_times to print the string
'Knock Knock' three times.
test knock three times - Run Test
def test_knock_three_times(): with CaptureOutput() as output: knock_three_times() assert len(output) == 3 assert output == [ 'Knock Knock', 'Knock Knock', 'Knock Knock' ]