Kute F.

asked • 04/14/20

using a leading zero (0) in Python 3.8

Why do you get the error below in Python ver 3.8


print(01)

SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers



Xtian Q.

Try: print(1) or: print(0.1)
Report

07/29/20

1 Expert Answer

By:

Marcus M. answered • 04/14/20

Tutor
2 (1)

Python Developer/Tutor Specializing In Python Basics/Fundamentals

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.