def count_odd_list(mlist):
#if we have only one element in the list, then we check only that element, and return 1.
if len(mlist) == 1:
if mlist[0] % 2 != 0:
return 1
else:
return 0
#if an odd number is found, we add 1 to the resulting number.
if mlist[0]%2 != 0:
#checking the first element of the list and passing the list again to the function from the 2nd element to the end.
return 1+count_odd_list(mlist[1:])
else:
return count_odd_list(mlist[1:])
print(‘%s : %d’ %([2, 3, 5, 6], count_odd_list([2, 3, 5, 6])))
![https://www.hackerrank. itertools Current Buffer (saved locally, editable) 0 Python 3 1 def count odd list(mlist) #1f we have only one element in the list, then we check only that element, and return 1. if len(mlist)1: if mlist [0] % 2 !: 0: return 1 else: return Θ 8 #if an odd number is found, we add 1 to the resulting number. #checking the first element of the list and passing the list again to the function from return 1+count_odd_list (mlist[1:1) return count_odd_list (mlistI1:1) th 2nd element to the end 12 13 14 15 16 else: print(%s : %d %([2, 3, 5, 6], count odd-List([2, 3, 5, 6)))) Line: 5 Col: 21 Upload Code as File Test against custom input Run Code Submit Code O Type here to search ENG 150 INIL 30-09-2018](https://media.cheggcdn.com/media%2F2ee%2F2ee1dbcd-57a9-43be-b617-31af81df74fe%2FphpjkAV8k.png)

If there is anything that you do not understand, or need more help, then please mention it in the comments section.