Write a Python function that takes a list of integers and re…
Write a Python function that takes a list of integers and returns the product of all the odd numbers in the list. If there are no odd numbers, return 1. def product_of_odd_numbers(input_list): # Example 1:input_list = print(product_of_odd_numbers(input_list)) # Output: 15 # Example 2:input_list = print(product_of_odd_numbers(input_list)) # Output: 1