197k views
4 votes
Why did Jean get an error when he tried to use the variable class? (5 points)

1. Variables should be two words.
2. Variables cannot be Python keywords.
3. Variables should start with a number.
4. Variables should always be camelCase.

2 Answers

3 votes

Answer:

2

Step-by-step explanation:

You cannot put python variable words in your code

User Iphonic
by
6.7k points
4 votes

Class is used to define a class which makes it a keyword. You cannot make variables python keywords.

#2 is correct.

User Sampath D
by
6.8k points