-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Left zeros not allowed in a variable #6944
Labels
Comments
labay11
changed the title
Trailing zeros not allowed in a variable
Left zeros not allowed in a variable
Jun 23, 2023
Hi @labay11 thank you for submitting this issue! In python, integers cannot begin with the number zero. |
Hi @labay11, just following up with you on this, is there a chance you could provide us with any error messages you may be seeing? |
Hi @labay11, I'll close this issue out but please feel free to reopen this with any additional information! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
This error occurs in both python and Julia on a jupyter notebook. The definition of a variable like
where the
x
's are different digits0-9
, makes the program crash.delete
removes all of these hidden digits one by one until the initial 0 is reached.The behavior is not reproduced in a python/julia console or in a notebook opened in VisualStudio. Also, the syntax
c = 0.xxxxxxx
is accepted in the jupyter notebook and produces no error.Another thing we tried was to edit the notebook externally in VScode with different cells for the variables
a, b & c
and open it later in the browser. This produces that the cells containing examplesa & b
are not highlighted and cannot be executed. Instead, cellc
is correctly highlighted and executed.Context
The text was updated successfully, but these errors were encountered: