Snatch any course you want for just $15! Go to “Courses” and find a course ↓
4. Question 3


Perfect! Now we'll work with data on factory employees.


Read the file named employee.json. If an employee has worked more than 80 hours, increase their salary by 10 percent. Print the results, using ; and = as separators and setting the indent to 4.

Note: Each employee object in the file has four fields: id, name, salary, and hours.

Stuck? Here's a hint!

Use the following line to print custom-formatted JSON:

print(json.dumps(data, separators=("; ", " = "), indent=4))