Coding Challenge: Rewriting Code as an Expression
Let’s rewrite a code snippet as an expression.
We'll cover the following
Problem statement
In this challenge, rewrite the following if\else
statement as an expression (without changing the function signature) in the function given below.
Get hands-on with 1400+ tech skills courses.