Applying a Lambda to a Row

Hi, I’ve been working in ‘Applying a Lambda to a Row’ and got stuck for a while because of a “syntax error” I checked your solution besides it was the same as mine I copied it and paste it to see if it passes the test and it failed too.

total_earned = lambda row: (row.hourly_wage * 40) +
((row.hourly_wage * 1.5) * (row.hours_worked - 40))
if row.hours_worked > 40
else row.hourly_wage * row.hours_worked

Please post the URL of this exercise, thanks.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.