Skip to content
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

Update shipping.py #135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update shipping.py #135

wants to merge 1 commit into from

Conversation

md-coops
Copy link

After completing https://www.codecademy.com/courses/learn-python-3/projects/python-sals-shipping. I noticed how my version is different to the accepted answer. coming from a browser orientated javascript background I never really have had to worry about numerical calculations and number types. However coming into python, I am starting to consider the correct use of different numbering systems in programming.

Arguably price should be an integer as it is discrete data. Even in our simple calculations, using a float for currency starts to deviate our results slightly rather than using an integer.

Arguably price should be an integer as it is discrete data. Even in our simple calculations, using a float for currency starts to deviate our results slightly rather than using an integer.
@CLAassistant
Copy link

CLAassistant commented Jul 30, 2024

CLA assistant check
All committers have signed the CLA.

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