Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

leading zero causes an exception in the program

i hope you are doing well.

I have a question maybe it is stupid to ask rather than search.

but I looked up for a satisfactory answer.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Why leading zero is not allowed in some language, such as python.

what problems can leading zero produce?

thanks in advance!

>Solution :

This is not just in Python, many programming languages doesn’t allow leading zeros. This is because zero is used to define if number is for example binary or octal base numbers. More about them in Python here.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading