class Hotel:
    def __init__(self, grade, room, day):
        self.grade = grade      
        self.room = room
        self.day = day          
        self.pay = 0            

    def parlor(self):
        if self.room == "Standard":
            self.pay = 100000 * self.day
        elif self.room == "Suite":
            self.pay = 300000 * self.day

    def rating(self):
        if self.grade == "VIP":
            self.pay = int(self.pay * 0.8)

    def result(self):
        print(f"{self.room} 객실 {self.day}박 예약이 완료되었습니다. "
              f"VIP 할인(20%)이 적용되어 총 결제 금액은 {self.pay:,}원입니다.")

H = Hotel("VIP", "Suite", 2)
H.parlor()
H.rating()
H.result()

Embed on website

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