human
Print all proper fractions with denominators less than equal to N | Function to print all proper functions.
If the numerator and denominator are coprime.
Driver code"
Solution in Python:

Write me a code to print all proper fractions with denominators less than equal to N and the other steps required?
assistant
#Here is code to print all proper fractions with denominators less than equal to N and the other steps required.
 def printfractions ( n ) :
	for i in range ( 1 , n ) :
		for j in range ( i + 1 , n + 1 ) :
		if __gcd ( i , j ) == 1 :
			a = str ( i )
			b = str ( j )
			print ( a + ' / ' + b , end = " , ▁ " )
def __gcd ( a , b ) :
	if b == 0 :
		return a
	else :
		return __gcd ( b , a % b )
if __name__ == ' _ _ main _ _ ' :
	n = 3
	printfractions ( n )