Why my code didn't return anything?

Why it didn’t return anything. It should print 906609. Please help!

def c():
	max = maxI = maxJ = 0
	i = 999
	j = 990
	while (i > 100):
		j = 990
		while (j > 100):
			product = i * j
			if (product > max):
				productString = str(product)
				if (productString == productString[::-1]):
					max = product
					maxI = i
					maxJ = j
			j -= 11
		i -= 1
	return max, maxI, maxJ
c()

print(c())*

2 Likes

Thanks for help! :slightly_smiling_face: