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

number printing mistake #609

Open
dlnicoz opened this issue Sep 11, 2024 · 2 comments
Open

number printing mistake #609

dlnicoz opened this issue Sep 11, 2024 · 2 comments

Comments

@dlnicoz
Copy link

dlnicoz commented Sep 11, 2024

here 03_operators.md inside example-number part on the very last part there print('Exponentiation: ', 2 ** 3) # 9 it means 2 * 2 * 2
it should be # 8 it means 2 * 2 * 2

@ali-kanbar
Copy link

print('Addition: ', 1 + 2) print('Subtraction: ', 2 - 1) print('Multiplication: ', 2 * 3) print ('Division: ', 4 / 2) # Division in python gives floating number print('Division: ', 6 / 2) print('Division: ', 7 / 2) print('Division without the remainder: ', 7 // 2) # gives without the floating number or without the remaining print('Modulus: ', 3 % 2) # Gives the remainder print ('Division without the remainder: ', 7 // 3) print('Exponential: ', 3 ** 2) # it means 3 * 3

Look, it's 3**2 which is 3*3 which 9, so no mistake, it's correct

@dlnicoz
Copy link
Author

dlnicoz commented Sep 20, 2024

print('Addition: ', 1 + 2) print('Subtraction: ', 2 - 1) print('Multiplication: ', 2 * 3) print ('Division: ', 4 / 2) # Division in python gives floating number print('Division: ', 6 / 2) print('Division: ', 7 / 2) print('Division without the remainder: ', 7 // 2) # gives without the floating number or without the remaining print('Modulus: ', 3 % 2) # Gives the remainder print ('Division without the remainder: ', 7 // 3) print('Exponential: ', 3 ** 2) # it means 3 * 3

Look, it's 3**2 which is 3*3 which 9, so no mistake, it's correct

yes you are right my bad i didn't mentioned that i am reading from .md file not from .py so there is in md file printing mistake is there !

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

2 participants