Hint
🧠 Not sure where to start?
Start by creating an empty list to store the filtered numbers:
positives = []
Now think: how can you loop through the numbers and check if they’re not negative? Maybe use a for
loop and an if
condition:
for number in numbers:
if number >= 0:
...
Inside the condition, you’ll want to add the number to your new list using .append()
.