SyntaxFix
Write A Post
Hire A Developer
Questions
Yes, you can use the shorthand syntax for if statements.
if
rate = lambda(t): (200 * exp(-t)) if t > 200 else (400 * exp(-t))
Note that you don't use explicit return statements inlambdas either.
return
lambda