console.py
def do_all(self, line):
        """prints all string representation of all instances
           based (or not) on the class name"""
        args = line.split()
        objects_dic = storage.all()
        objects_list = []
        if len(args) == 0:
            for key in objects_dic:
                objects_list.append(objects_dic[key].__str__())
            print(objects_list)
        elif args[0] in new_c_list:
            for key in objects_dic:
                if objects_dic[key].__class__.__name__ == args[0]:
                    objects_list.append(objects_dic[key].__str__())
            print(objects_list)
        else:
            print("** class doesn't exist **")
prints all string representation of all instances
           based (or not) on the class name
prints all string representation of all instances
based (or not) on the class name
prints all string representation of all instances based ( or not ) on the class name
def do_all(self, line):
        args = line.split()
        objects_dic = storage.all()
        objects_list = []
        if len(args) == 0:
            for key in objects_dic:
                objects_list.append(objects_dic[key].__str__())
            print(objects_list)
        elif args[0] in new_c_list:
            for key in objects_dic:
                if objects_dic[key].__class__.__name__ == args[0]:
                    objects_list.append(objects_dic[key].__str__())
            print(objects_list)
        else:
            print("** class doesn't exist **")
def do_all ( self , line ) : args = line . split ( ) objects_dic = storage . all ( ) objects_list = [ ] if len ( args ) == 0 : for key in objects_dic : objects_list . append ( objects_dic [ key ] . __str__ ( ) ) print ( objects_list ) elif args [ 0 ] in new_c_list : for key in objects_dic : if objects_dic [ key ] . __class__ . __name__ == args [ 0 ] : objects_list . append ( objects_dic [ key ] . __str__ ( ) ) print ( objects_list ) else : print ( "** class doesn't exist **" )
prints all string representation of all instances
based (or not) on the class name
prints all string representation of all instances based ( or not ) on the class name
"""prints all string representation of all instances
           based (or not) on the class name"""
self
line