class Student:
    def __init__(self, name, age, school):
        self.name = name
        self.age = age
        self.school = school

    def display_info(self):
        print(f"이름: {self.name}")
        print(f"나이: {self.age}")
        print(f"학교명: {self.school}")


student1 = Student("김철수", 20, "서울대학교")
student1.display_info()

Embed on website

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