Расставить отступы в коде,20 баллов
class worker:
def init(self,name,position):
self.name=name
self.position = position
class office:
def init(self,name):
self.name = name
self.workers=[]
def add_worker(self,worker):
self.workers.append(worker)
office1 = office("office1")
office2 = office("office2")
worker1=worker("John","manager")
worker2=worker("Jane","developer")
worker3=worker("Bob","designer")
office1.add_worker(worker1)
office1.add_worker(worker2)
office2.add_worker(worker3)
office1.print_workers()
Answers & Comments
Ответ:
на фото
Объяснение:
Расставлены лишь отступы.