セクション 3. 章 5
solution.py
main.py
Mode Distribution
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Complete a function that determines the musical mode of a track based on its mode value. The mode is represented as an integer, where a value of 1 indicates a major mode and a value of 0 indicates a minor mode.
Inputs:
mode: An integer representing the mode of the track. It can be either:1for major mode.0for minor mode.
Steps:
-
Determine Mode: Check the value of the
modeinput. Ifmodeis1, the track is in a major mode, otherwise it is in a minor mode. -
Return the Mode:
- Return the string
'major'if it is major mode. - Return the string
'minor'if it is minor mode.
- Return the string
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 5
solution.py
main.py
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください