Challenge: Creating Lambda Function
Tehtävä
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
.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 6. Luku 12
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 1.67
Challenge: Creating Lambda Function
Pyyhkäise näyttääksesi valikon
Tehtävä
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
.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Awesome!
Completion rate improved to 1.67Osio 6. Luku 12
single