セクション 1. 章 50
single
Challenge: Defining a Compound Function
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given a function called getGrade(score) that calculates a student's grade based on their score.
Now you need to create another function that uses this information to display complete student details.
Your tasks:
- Define a function called
showStudentDatawith the following parameters:name,age,score. - Inside the function:
- Use the
getGradefunction by passingscoreas an argument. - Combine the student's name, age, and grade into a single message.
- Use the
- The final message should follow this format:
Name: Alice, Age: 22, Grade: A
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 50
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください