Complete the code to add a new test case to your portfolio list.
portfolio = [] portfolio.[1]('Test login functionality')
Use append to add a new test case to the list.
Complete the code to check if 'Test API' is in your portfolio.
if 'Test API' [1] portfolio: print('Test case found')
The keyword in checks if an item is inside a list.
Fix the error in the code to print the number of test cases in the portfolio.
print('Total tests:', [1](portfolio))
Use the built-in function len() to get the number of items in a list.
Fill both blanks to create a dictionary of test names and their status.
test_status = {test: [1] for test in portfolio if test [2] 'Test login functionality'}Assign 'passed' status to tests not equal to 'Test login functionality'.
Fill all three blanks to filter and map test cases with 'passed' status.
passed_tests = {test[1]: status for test, status in test_status.items() if status [2] [3]Use .upper() to capitalize test names, check if status equals 'passed'.
