21st Jun 2018, 2:04 AM
RoXy Jean
RoXy Jean - avatar
4 Answers
+ 9
"class" is a reserved keyword in Python, and can't be used as a variable name. Change it to something else, and your code works fine! 😁
21st Jun 2018, 2:08 AM
Tamra
Tamra - avatar
+ 5
If you want a list of the Python keywords, you can run this code import keyword print(keyword.kwlist)
22nd Jun 2018, 4:59 AM
David Ashton
David Ashton - avatar
+ 4
if you absolutely wanted to use class use Klass
22nd Jun 2018, 5:55 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
thx, I never knew :D
21st Jun 2018, 2:12 AM
RoXy Jean
RoXy Jean - avatar