问题描述:
Write a python function to print negative numbers in a list.

测试用例:
['assert neg_nos([-1,4,5,-6]) == -1,-6', 'assert neg_nos([-1,-2,3,4]) == -1,-2', 'assert neg_nos([-7,-6,8,9]) == -7,-6']

生成的代码:
def neg_nos(lst):
    negative_numbers = []
    for num in lst:
        if num < 0:
            negative_numbers.append(num)
    print(*negative_numbers, sep=',')