セクション 1. 章 16
single
Challenge: Reverse Words in a Sentence
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Write a function that reverses the order of words in a given sentence using a loop.
- The function must split the input sentence into words.
- The function must use a loop to reconstruct the sentence with the words in reverse order.
- The function must return the reversed sentence as a single string.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 16
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください