class Employee: name: str city: str salary: int def __init__(self, name, city, salary): self.name = name self.city = city self.salary = salary def __str__(self): return f"{self.name} ({self.city} Fizetés: {self.salary} LTC)" mari = Employee('Mari', 'Pécs', 395) print(mari) # Kimenet: Mari (Pécs Fizetés: 395 LTC)