I want the location to appear when I ask for results. Why can't I display the employee of the month's location?
Code:
work_hours = [("Jao", "Ville", 800), ("Billy", "Jackson St", 400), ("Kevin", "Westside", 500)] def employee_check(work_hours): current_max = 0 employee_of_month = "" for employee, location, hours in work_hours: if hours > current_max: current_max = hours employee_of_month = employee else: pass # return the statement return (employee_of_month, location, current_max) result = employee_check(work_hours) print(result)