Complete the code to print the stage where bug fixing is cheapest.
print('Bug fixing is cheapest during the [1] stage.')
Fixing bugs early during the requirements stage is cheapest because changes are easier to make before coding starts.
Complete the sentence to show where bug fixing cost increases significantly.
Bug fixing cost increases significantly during the [1] phase.The testing phase is when bugs are found after coding, so fixing them costs more than earlier stages.
Fix the error in the code to correctly calculate bug fixing cost multiplier.
cost_multiplier = 1 if stage == 'requirements' else [1]
The cost multiplier should be a number, not a string or word. 10 is correct for later stages.
Fill both blanks to create a dictionary mapping stages to bug fixing costs.
bug_costs = {'requirements': 1, [1]: 10, [2]: 100}Testing costs 10 times more, production costs 100 times more than requirements.
Fill all three blanks to complete the function that returns bug fixing cost multiplier by stage.
def get_bug_cost(stage): return [1].get(stage, [2]) * [3] costs = {'requirements': 1, 'testing': 10, 'production': 100}
The function uses the costs dictionary, returns 1 if stage not found, and multiplies by 2 as an example factor.