generate functionTue, 07 Feb 2023

The department has 3 employees who receive wages in rubles. It is required to determine how much the salary of the highest paid of them differs from the lowest paid.

def wage_diff(w1, w2, w3): return max(w1, w2, w3) - min(w1, w2, w3) wage_diff(1, 2, 3)

Questions about programming?Chat with your personal AI assistant