human
Write a function to filter odd numbers. Here is a solution in Python:
Write me a the Python code you requested?
assistant
#Here is the Python code you requested.
 def filter_oddnumbers(nums):
 odd_nums = list(filter(lambda x: x%2 != 0, nums))
 return odd_nums