7.5 points The following code is meant to calculate the average salary of employees, but it contains errors. Identify the line numbers that would raise exceptions when executed. 1. employees = { ‘Alice’: (28, 5000), ‘Bob’: (34, 6000), ‘Clara’: (25, 4500)}2. departments = {‘HR’, ‘IT’, ‘Design’}3. employees[‘Bob’][1] = 6200 4. departments.add([‘Finance’, ‘Admin’]) 5. employees.add((‘David’, (30, 5500))) 6. first_dept = departments[0] 7. total = 08. for person in employees:9. total += employees[person][1]10. average = total / len(employees)11. print(“Average salary:”, average)
Blog
Which of the following routine vaccines is recommended for p…
Which of the following routine vaccines is recommended for patients aged older than 65 or with diabetes?
Which instruction should be given to patients taking antibio…
Which instruction should be given to patients taking antibiotics?
Side effects of streptomycin can include which of the follow…
Side effects of streptomycin can include which of the following?
Which of the following is an antiviral?
Which of the following is an antiviral?
Side effects of the cephalosporins include which of the foll…
Side effects of the cephalosporins include which of the following?
Which of the following treat(s) ED (impotence) and pulmonary…
Which of the following treat(s) ED (impotence) and pulmonary hypertension or BPH?
Which of the following is a birth control ring that lasts fo…
Which of the following is a birth control ring that lasts for one year and is removed every three weeks to allow a period to occur?
A breastfeeding mother needs treatment for a bacterial infec…
A breastfeeding mother needs treatment for a bacterial infection. Which factor is most relevant to this decision?
Rejection of transplanted organs may be prevented by the use…
Rejection of transplanted organs may be prevented by the use of which medication?