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

Possible Python Version Confusion in Chapter 2 Practice Problems: 0perators #280

Open
resmins opened this issue Jul 30, 2022 · 0 comments
Open

Comments

@resmins
Copy link

resmins commented Jul 30, 2022

In Chapter 2
Practice Problems
Operators

d = 10
e = 5.0
f = 2
g = 11.0
h = 3
i = 1.5

Problem 11
d / f ---> 10 / 2 = 5.0 # Python 2.x with one division [/] operation symbol
***Ada Course written in Python 2.x
d // f ---> 10/ 2 = 5 # Python 3.x floor division / integer division
d / f ---> 10 / 2 = 5.0 # Python 3.x floating point division
So d / f in the Ada course with Python 2.x the solution is 5.0 instead of 5

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

No branches or pull requests

1 participant