a=[2,3,4,9a] #error
a=[2,3,4,9b] # error
.
.
.
a=[2,3,4,9j] # okay
a=[2,3,4,9k] # error
.
.
a=[2,3,4,9z] # error
I understand why others are giving errors but why is a=[2,3,4,9j] okay
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
9jis the imaginary number (complex number) so it is a valid literal. Other ones are not. May be you want strings in which case you should write'9a','9b', etc. with quotes (single or double).