+ 10
In python 3, why do i get an 8 multiple
Print(1,020,003)
8 Antworten
+ 7
Yes. In some versions of python 3 you get a syntax error, however in the newer ones you get this:
print(1,020,000)
Answer is: 1 8 0
Why is there an 8 there when there should be a 2 or 20?
If you put a 3 instead of 2 you will get 16. It increments by 8 proportionately as you increase the middle number. It does the same for the last set of zeros on the million integer.
I hope that clears my question. Please someone tell me why. Thanks 😊
+ 7
Hmmmmm? Well thank you for that info 😊
+ 7
Thank you so very much Diego. You're a genius!🙏
+ 5
Yeah... I can't seem to reproduce the issue/output.
+ 5
Your question is vague. Please add more information.
+ 4
Please elaborate on your question.
I get a SyntaxError: invalid token.
+ 3
For Python 2:
print 1, 020, 003
For Python 3:
print(1, 0o20, 0o03)