Секція 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
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат