From 1a279432fe4ecb42096ece7b5abbc316a9b4c53e Mon Sep 17 00:00:00 2001 From: van-tienhoang <40869791+van-tienhoang@users.noreply.github.com> Date: Fri, 18 Jan 2019 19:55:09 -0500 Subject: [PATCH] Fix the code python code format (#30449) Fix the code python code format --- .../python/object-oriented-programming/classes/index.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/guide/english/python/object-oriented-programming/classes/index.md b/guide/english/python/object-oriented-programming/classes/index.md index ffa3cb8250..2c9b94aa1b 100644 --- a/guide/english/python/object-oriented-programming/classes/index.md +++ b/guide/english/python/object-oriented-programming/classes/index.md @@ -19,9 +19,10 @@ Each of those variables are now an instance of the class Person, and have all th 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: - -`class Person: - ` +``` +class Person: + +``` Class definitions must be executed before they have any effect.