Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Questions
4. Question 3

Instruction

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

Exercise

Read the file named employee.json. If an employee has worked more than 80 hours, increase their salary by 10 percent and round the result to a nearest integer (use the round() function). 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))