Jul-07-2021, 03:57 PM
int(num * num * num) does the operation inside the the parenthesis before converting to int. You can do this:
print((int(num)**3) # or num = int(num) print(num * num * num)