Skip to content

Update Armstrong_number.py #1862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2023
Merged

Conversation

nikitapandeyy
Copy link
Contributor

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.

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.
@geekcomputers geekcomputers merged commit b27f2bf into geekcomputers:master Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants