From 82c3ce4e8c4fc17a30290f87698ca5d25e113312 Mon Sep 17 00:00:00 2001 From: Ankush Aggarwal Date: Tue, 28 Mar 2017 01:21:18 -0700 Subject: add underscore to property (#2691) property is exposed using setter and getters --- python3.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3.html.markdown b/python3.html.markdown index 6a2a7ccd..a74ddd7d 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -665,7 +665,7 @@ class Human: self.name = name # Initialize property - self.age = 0 + self._age = 0 # An instance method. All methods take "self" as the first argument def say(self, msg): -- cgit v1.2.3