Challenge: Creating Lambda Function
Taak
Swipe to start coding
You are given three numerical variables: a, b, and c. Create a lambda function called fun that:
- Multiplies
aby 3, multipliesbby 2, adds the results toc, and then squares the final result. - Create a variable called
resultand use the lambda function to compute the final result for a given set of values fora,b, andc.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 6. Hoofdstuk 12
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.67
Challenge: Creating Lambda Function
Veeg om het menu te tonen
Taak
Swipe to start coding
You are given three numerical variables: a, b, and c. Create a lambda function called fun that:
- Multiplies
aby 3, multipliesbby 2, adds the results toc, and then squares the final result. - Create a variable called
resultand use the lambda function to compute the final result for a given set of values fora,b, andc.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 6. Hoofdstuk 12
single