fix: add missing backticks to get_balance method (#67467)

This commit is contained in:
Priyanshu pundir
2026-05-20 13:58:50 +05:30
committed by GitHub
parent 2fa472e83b
commit 80762b3113
@@ -88,7 +88,7 @@ account = Wallet(500)
print(account.__balance) # AttributeError: 'Wallet' object has no attribute '__balance' 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 ```py
class Wallet: class Wallet: