セクション 6. 章 6
single
Challenge: Create a Sum Function
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Implement a function sum that takes three arguments (a, b, and c) and returns their sum.
Next, call this function twice, using the following sets of arguments:
- Use
24,12, and32for the first function call and store the result in the variablesum1. - Use
12,42, and5for the second function call and store the result in the variablesum2.
Finally, print the results of both function calls.
The output should be:
sum1 = 68
sum2 = 59
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 6. 章 6
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください