Get odd numbers from a list

Report a typo

There is a list containing numbers which are equal to their indexes in the list:

nums = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

Select all suitable ways to get a list containing only odd numbers from this list in any order.

As you remember, the full syntax for slicing look like this: sequence[start:stop:step]. So, if there are two colons between the numbers it means that the stop index is not specified.
Select one or more options from the list
___

Create a free account to access the full topic