We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c31868 commit afe5dabCopy full SHA for afe5dab
01-encapsulation-1.py
@@ -17,7 +17,7 @@ def set_val(self, val):
17
self.value = val
18
19
def get_val(self):
20
- print(self.value)
+ #print(self.value)
21
return self.value
22
23
a = MyClass()
@@ -38,4 +38,4 @@ def get_val(self):
38
# a) Either replace `return self.value` with `print(self.value)`
39
# or add a print statement **above** `return` as `print(self.value)`.
40
41
-# b) Remove `return(self.value)` and replace it with `print(self.value)`
+# b) Remove `return(self.value)` and replace it with `print(self.value)`
0 commit comments