class Person:
def __init__(self, data):
name, age, city = data.split(',')
self.name = name
self.age = int(age)
self.city = city
data = "홍길동,20,서울"
person = Person(data)
print(person.name)
print(person.age)
print(person.city)
To embed this project on your website, copy the following code and paste it into your website's HTML: