I am so glad we learned to use other's classes before attempting to create ours. I think it's a better approach to learning about it.
You can use the keyword "pass" to create an empty class or function.
To name a class, the first letter of every word should be capitalized (i.e., PascalCase)
Another type is the camelCase.
And another is the snake_case.
PascalCase is used for class names and snake_case for everything else in python programming.
Comments
Post a Comment