class Contact:
    def __init__(self):
        self.contact = []

    def add_phone(self,number):
        new_number = {'number': number}
        self.contact.append(new_number)
        
    def display_number(self):
        for i in self.contact:
            print(f"전화번호: {i['number']}")
            
phonenumber = Contact()
phonenumber.add_phone("010-1234-5678")
phonenumber.add_phone("010-0000-0000")
phonenumber.display_number()

Embed on website

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