FAQ: Learn Python: Syntax - Calculations


This community-built FAQ covers the “Calculations” exercise from the lesson “Learn Python: Syntax”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Computer Science
Data Science

FAQs on the exercise Calculations

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!


for the numbers section, it doesn’t seem to matter if I put spaces between the numbers or in a function, but will it matter in the future?


i think its just a mater of code organization and to easly read the code in the future


When a calculation comes up in the code and the user wishes to round the number, I noticed that it rounds down even when the response is .5. Does the language round down at .5 and round up at .51 or not at all?


Perhaps I’m overthinking this but shouldn’t the code snippet be print((25 * 68 + 13) / 28)?


No, that would put addition before division.

(25 * 68) + (13 / 28)