How to work with octal numbers in Python?

How to work with octal numbers in Python?
In C++, for example, be entered starting with 0.
July 2nd 19 at 17:43
2 answers
July 2nd 19 at 17:45
>>> 0o777
511
July 2nd 19 at 17:47
They talked about this in the documentation
Octal literals are no longer of the form 0720; use 0o720 instead.
You may read it here

Find more questions by tags Python