Section 1. Chapter 8
single
Challenge: Filter Odd Numbers
Swipe to show menu
Task
Swipe to start coding
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.
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 8
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat