class Person:
def __init__(self, name, city, state, interests):
self.name = name
self.city = city
self.state = state
self.interests = interests
def __str__(self):
return (
f"Name: {self.name}\n"
f"City: {self.city}\n"
f"State: {self.state}\n"
f"Interests: {', '.join(self.interests)}"
)
me = Person(
"Alisson", "Criciúma", "Santa Catarina", ["Beach", "Series", "Music"]
)
print(me)
alissonrh Goto Github PK
Name: Alisson Rech Honorato
Type: User
Company: student
Bio: coding student | in the progress to be a Dev
Location: Criciúma - SC - Brazil