+ 2
Why can't i use split function here
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! đ
+ 5
If you want a list of the Python keywords, you can run this code
import keyword
print(keyword.kwlist)
+ 4
if you absolutely wanted to use class use
Klass
+ 2
thx, I never knew :D