class Account:
    def __init__(self, balance):
            self.balance = balance
    def deposit(self,amount):
        self.amount = amount
    def withdraw(self,amount):
        self.balance -= amount
        if self.balance < 0:
            print("잔액 부족!")

    def get_balance(self):
        return self.balance

account = Account(1000)
account.deposit(500)
account.withdraw(200)
print("잔액:", account.get_balance())

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: