Challenge: Creating Lambda Function
Opgave
Swipe to start coding
You are given three numerical variables: a
, b
, and c
. Create a lambda function called fun
that:
- Multiplies
a
by 3, multipliesb
by 2, adds the results toc
, and then squares the final result. - Create a variable called
result
and use the lambda function to compute the final result for a given set of values fora
,b
, andc
.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 6. Kapitel 12