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 / map-app Goto Github PK
View Code? Open in Web Editor NEWAplicação Full Stack que consome dados georreferenciados da extensão PostGIS do banco de dados PostgreSQL