human
Ratio of mth and nth terms of an A . P . with given ratio of sums | function to calculate ratio of mth and nth term.
ratio will be tm / tn = ( 2 * m - 1 ) / ( 2 * n - 1 ).
Driver code"
How can the above be solved in Python?

=====
Write me a code to ratio of mth and nth terms of an A?
assistant
#Here is code to ratio of mth and nth terms of an A .
 def CalculateRatio ( m , n ) :
	return ( 2 * m - 1 ) / ( 2 * n - 1 ) ;
if __name__ == ' _ _ main _ _ ' :
	m = 6 ;
	n = 2 ;
	print ( float ( CalculateRatio ( m , n ) ) ) ;