class Discount:
    def __init__(self, discount):
        self.discount = discount
        self.new_discount_rate = discount

    def discount_rate(self, discount):
        self.new_discount_rate = self.new_discount_rate * discount // 100

    def display_discount(self):
        print(f"할인 전 금액: {self.discount}, 할인 후 금액: {self.new_discount_rate}")


dis = Discount(10000)
dis.discount_rate(70)
dis.discount_rate(90)
dis.display_discount()

Embed on website

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