Complete the code to set a budget alert threshold at 80%.
budget_alert = BudgetAlert(threshold= [1])The threshold should be a decimal representing 80%, so 0.8 is correct.
Complete the code to filter cost data for the current month.
filtered_costs = costs.filter(date__month= [1])Using datetime.now().month dynamically gets the current month number.
Fix the error in the code to calculate cost per model deployment.
cost_per_deployment = total_cost [1] number_of_deploymentsTo find cost per deployment, divide total cost by number of deployments.
Fill both blanks to create a dictionary of model costs filtered by cost greater than 100.
model_costs = {model: cost [1] model, cost in cost_data.items() if cost [2] 100}The dictionary comprehension needs 'for' to iterate and '>' to filter costs above 100.
Fill all three blanks to create a filtered dictionary of model costs where cost is less than 500 and keys are uppercase.
filtered_costs = [1]: cost for [2], cost in costs.items() if cost [3] 500
Keys are converted to uppercase with model.upper(), iterated with model, and filtered with <.