Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is the command that has the mistake:

3var = [1, ‘cat’, 7.9]

What I have tried:

I tried finding the mistake in the command, but I was unable to find the mistake.
Posted
Updated 16-Oct-22 18:16pm

1 solution

You never said what the exact error message was, so this is just a guess.

Variable names, "3var", cannot start with a number, and cannot be a Python keyword. Variable names must start with either an alpha or underscore character.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900