This code is from a python lesson. I'm not interested in breaking out of loops. I need to understand what this code is actually doing - since I can't make it run. The correct code is irrelevant. I don't understand this code. (The lesson results don't make sense.)
def find_512():
for x in range(100):
for y in range(100):
if x * y == 512:
break # does not do what we want!
return f"{x} * {y} == 512"