My program is :
def question_fourth_solution(array_nums):
odd_len = len(list(filter(lambda x: (x%2 != 0),array_nums)))
even_len = len(list(filter(lambda x: (x%2 == 0),array_nums)))
print(odd_len,even_len)
return array_nums
question_fourth_solution([1, 2, 3, 5, 7, 8, 9, 10])
I want my output in tuple form like given below: (5,3)