human
Average of odd numbers till a given odd number | Function to calculate the average of odd numbers.
driver function"
How can the above be solved in Python?

Give me a code to average of odd numbers till a given odd number and the other steps required?
assistant
#Here is code to average of odd numbers till a given odd number and the other steps required.
 def averageOdd ( n ) :
	if ( n % 2 == 0 ) :
		print ( " Invalid ▁ Input " )
		return - 1
	return ( n + 1 ) // 2
n = 15
print ( averageOdd ( n ) )