Python - Encapsulation and Data Protection
You want to implement a class
Wallet with a private attribute __amount that can be read from outside but only modified via a method add_money(). Which code snippet correctly achieves this?