Added a comma after class (#23613)

This commit is contained in:
JawnsenTrain
2018-11-26 04:55:51 -06:00
committed by Manish Giri
parent 1316ad4fbb
commit 417f485da7

View File

@ -16,7 +16,7 @@ Each of those variables are now an instance of the class Person, and have all th
## Create a Class
To define a class the keyword **class** is used, followed by the name defining the class and a colon. The lines after the definition line (code describing attributes and behaviors/methods) are indented as in a Python function.
To define a class, the keyword **class** is used, followed by the name defining the class and a colon. The lines after the definition line (code describing attributes and behaviors/methods) are indented as in a Python function.
For example, to create a class named Person, we can write:
@ -29,6 +29,4 @@ Class definitions must be executed before they have any effect.
There is tons of information on classes online. https://www.w3schools.com/python/python_classes.asp is an easy introduction.
<!-- Please add any articles you think might be helpful to read before writing the article -->
<!-- Please add any articles you think might be helpful to read before writing the article -->