I saw a code that doesn't work in my Visual Studio Code. Do I need to download another extension of Python or do normal Python work?
class Bank:
def _init_(self):
self.balance = 1000
def get_balance(self):
return self.balance
def withdraw(self, amount):
self.balance = self.balance - amount
return amount
my_bank = Bank()
my_bank.withdraw(100)
balance = my_bank.get_balance()
print(balance)
my_bank.withdraw(50)
balance = my_bank.get_balance()
print(balance)
