def __str__(self): a = [[self.name]] a[0].append('rem ' + str(self.remaining)) a[0].append('top_pq ' + self.room_pq.top().name) a[0].append('top_pq_unfill ' + str(self.room_pq.top().unfilled())) a[0].append('top_pq_fill ' + str(self.room_pq.top().filled())) a[0].append('top_pq_type ' + self.room_pq.top().get_type()) b = [[' => ']] for room in self.room_list: b[0].append(room.name + ' ' + str(room.teachers - len(room.teachers_alloted))) a = Tabular(a) b = Tabular(b) return a.__str__() + '\n' + b.__str__() + '\n'
def __str__(self): a = [[self.name]] a[0].append(self.unfilled) for room in self.room_list: a[0].append(room.name + ' ' + str(room.teachers - len(room.teachers_alloted))) a = Tabular(a) return a.__str__()
def __str__(self): a = [ ["name",self.name], ["teachers-required",self.teachers], ["capacity",self.capacity], ["teachers-alloted"," ".join([teacher.name for teacher in self.teachers_alloted])] ] for key in self.extra: a.append([key,getattr(self,key)]) a = Tabular(a) return a.__str__()
def __str__(self): table = [ ['Roll num', self.roll_num], ['Name', self.name], ['Points', self.points], ['Cgpa', self.cgpa], ['Sgpa', self.sgpa], ['Branch', self.branch], ['Rank', self.rank], ['Gender', self.gender], ['Gender rank', self.rank], ] table = Tabular(table) return table.__str__()
def __str__(self): a = [ ["id",self.idd], ["name",self.name], ["rank",self.rank], ["info",self.info], ["duties",self.duties], ["alloted_res","\n".join([str(x) for x in self.alloted_res])], ["alloted","\n".join([str((x,self.alloted[x])) for x in self.alloted])], ] if debug: a.append(["credits",self._credits]) for key in self.extra: a.append([key,getattr(self,key)]) a = Tabular(a) return a.__str__()
def __str__(self): a = [[self.name]] for room in self.room_list: a[0].append(room.name) a = Tabular(a) return a.__str__()