SyntaxFix
Write A Post
Hire A Developer
Questions
You don't need to loop or to check anything. Just take a cube root of 12,000 and round it down:
r = int(12000**(1/3.0)) print r*r*r # 10648