Complete the code to print a simple test report status.
print('Test suite execution [1]')
The word 'completed' correctly indicates the test suite finished running.
Complete the code to check if the test report status is 'passed'.
if report_status == '[1]': print('All tests passed!')
The status 'passed' means all tests succeeded.
Fix the error in the code to correctly log the test result count.
test_results = {'passed': 10, 'failed': 2}
print('Passed tests:', test_results[1])Dictionary keys must be accessed with square brackets and quotes for strings.
Fill both blanks to create a dictionary comprehension that filters passed tests with count > 5.
filtered_results = {k: v for k, v in test_results.items() if k [1] 'passed' and v [2] 5}We check if key equals 'passed' and value is greater than 5.
Fill all three blanks to create a test report summary dictionary with uppercase keys and counts greater than zero.
summary = [1]: [2] for k, v in test_results.items() if v [3] 0
Keys are converted to uppercase, values kept, and only counts greater than zero included.
