SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a modulo operation for that.
if (n ** (1.0/3)) % 1 != 0: print("We have a decimal number here!")