Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The variable name sum is a built-in function name in Python. It is not a good practice to use built-in function names as variable names. It is recommended to use a different variable name, such as total or sum_of_cubes. The code is using the print function to display the result. It is generally better to return the result instead of printing it, so that the function can be used in other parts of the code.
- Loading branch information