Skip to content

Commit afe5dab

Browse files
committed
Fix reported issue "First file contains wrong comment #2"
Missed to remove the print() function in get_value()
1 parent 2c31868 commit afe5dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

01-encapsulation-1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def set_val(self, val):
1717
self.value = val
1818

1919
def get_val(self):
20-
print(self.value)
20+
#print(self.value)
2121
return self.value
2222

2323
a = MyClass()
@@ -38,4 +38,4 @@ def get_val(self):
3838
# a) Either replace `return self.value` with `print(self.value)`
3939
# or add a print statement **above** `return` as `print(self.value)`.
4040

41-
# b) Remove `return(self.value)` and replace it with `print(self.value)`
41+
# b) Remove `return(self.value)` and replace it with `print(self.value)`

0 commit comments

Comments
 (0)