mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: add missing backticks to get_balance method (#67467)
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ account = Wallet(500)
|
||||
print(account.__balance) # AttributeError: 'Wallet' object has no attribute '__balance'
|
||||
```
|
||||
|
||||
To get the current value of `__balance`, you can define a get_balance method. For example:
|
||||
To get the current value of `__balance`, you can define a `get_balance` method. For example:
|
||||
|
||||
```py
|
||||
class Wallet:
|
||||
|
||||
Reference in New Issue
Block a user