セクション 1. 章 8
single
Challenge: Filter Odd Numbers
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Write a script that filters and prints only the odd numbers from a given list.
- Iterate through the
numberslist. - Check if each element in the list is odd.
- Collect all odd numbers into a new list.
- Print the list of odd numbers.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 8
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください