Challenge: Creating Lambda Function
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 6. Kapitel 12
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Fantastiskt!
Completion betyg förbättrat till 1.67
Challenge: Creating Lambda Function
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 6. Kapitel 12
single