セクション 1. 章 49
single
Challenge: Improving the Grade Categorizer
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
In a previous task, you wrote a program that calculated a student's grade based on their score. Now imagine you need to calculate grades for many students. To make this reusable, you'll convert the logic into a function.
Your tasks:
- Define a function called
getGradewith one parameter namedgrade. - Move the given grading logic inside the function.
- Instead of printing the result, return the grade message.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 49
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください