Added a comma after class (#23613)
This commit is contained in:
		
				
					committed by
					
						 Manish Giri
						Manish Giri
					
				
			
			
				
	
			
			
			
						parent
						
							1316ad4fbb
						
					
				
				
					commit
					417f485da7
				
			| @@ -16,7 +16,7 @@ Each of those variables are now an instance of the class Person, and have all th | |||||||
|  |  | ||||||
| ## Create a Class | ## 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: | For example, to create a class named Person, we can write: | ||||||
|  |  | ||||||
| @@ -30,5 +30,3 @@ 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. | 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 --> | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user