human
Number of sub arrays with odd sum | Python 3 code to find count of sub - arrays with odd sum.
Find sum of all subarrays and increment result if sum is odd.
Driver code"
Solution in Python:

=====
Give me a code to number of sub arrays with odd sum and the other steps required?
assistant
#Here is code to number of sub arrays with odd sum and the other steps required.
 def countOddSum ( ar , n ) :
	result = 0
	for i in range ( n ) :
		val = 0
		for j in range ( i , n ) :
			val = val + ar [ j ]
			if ( val % 2 != 0 ) :
				result += 1
	return ( result )
ar = [ 5 , 4 , 4 , 5 , 1 , 3 ]
print ( " The ▁ Number ▁ of ▁ Subarrays " , " with ▁ odd " , end = " " )
print ( " ▁ sum ▁ is ▁ " + str ( countOddSum ( ar , 6 ) ) )