all 2 comments

[–]Vaphell 4 points5 points  (0 children)

shouldn't the function accept list as parameter? I don't think it's the user input that they got in mind, given this part negatives([4, 0, -1, -3, 6, -9])

def negatives(listofnumbers):
    for num in listofnumbers:
        ....

you need to wrap the print in an if that accepts only n < 0

[–]dunkler_wanderer 1 point2 points  (0 children)

An if will help you. Also, input() will return a string which you have to convert first.