human
Write a python function to return the negative numbers in a list. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def neg_nos(list1):
  out = []
  for num in list1: 
    if num < 0: 
      out.append(num)
  return out