human
Harmonic Progression | Python3 program to check if a given array can form harmonic progression.
Find reciprocal of arr [ ].
After finding reciprocal , check if the reciprocal is in A . P . To check for A . P . , first Sort the reciprocal array , then check difference between consecutive elements.
Driver code.
series to check whether it is in H . P.
Checking a series is in H . P or not"
Solution in Python:

=====
Can you provide a code to harmonic Progression and the other steps required?
assistant
#Here is code to harmonic Progression and the other steps required.
 def checkIsHP ( arr ) :
	n = len ( arr )
	if ( n == 1 ) :
		return True
	rec = [ ]
	for i in range ( 0 , len ( arr ) ) :
		a = 1 / arr [ i ]
		rec . append ( a )
	return ( rec )
	rec . sort ( )
	d = rec [ 1 ] - rec [ 0 ]
	for i in range ( 2 , n ) :
		if ( rec [ i ] - rec [ i - 1 ] != d ) :
			return False
	return True
if __name__ == ' _ _ main _ _ ' :
	arr = [ 1 / 5 , 1 / 10 , 1 / 15 , 1 / 20 , 1 / 25 ]
	if ( checkIsHP ( arr ) ) :
		print ( " Yes " )
	else :
		print ( " No " )