Variable question

why do i get an error when I use the variable in the image?

Variable names cannot begin with numbers. That’s why you are getting the error.


Change it to thsi:

first = [11, 100, 90, 1000, 999]
answer_1 = first[0]

variables can’t begin with letters or numbers?

Oops I meant numbers.

Variables cannot have numbers in them. Instead, name the 1st variable to “first”

No variable names can have numbers in them, they just cant begin with numbers.


i never knew that, wow lol

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.