console.py
def do_show(self, line):
        """prints the string representation of an instance
           based on the class name and id"""
        args = line.split()
        objects_dic = storage.all()
        if len(args) == 0:
            print("** class name missing **")
        elif args[0] not in new_c_list:
            print("** class doesn't exist **")
        elif len(args) != 2:
            print("** instance id missing **")
        elif args[0]+"."+args[1] in objects_dic:
            print(objects_dic[args[0]+"."+args[1]])
        else:
            print("** no instance found **")
prints the string representation of an instance
           based on the class name and id
prints the string representation of an instance
based on the class name and id
prints the string representation of an instance based on the class name and id
def do_show(self, line):
        args = line.split()
        objects_dic = storage.all()
        if len(args) == 0:
            print("** class name missing **")
        elif args[0] not in new_c_list:
            print("** class doesn't exist **")
        elif len(args) != 2:
            print("** instance id missing **")
        elif args[0]+"."+args[1] in objects_dic:
            print(objects_dic[args[0]+"."+args[1]])
        else:
            print("** no instance found **")
def do_show ( self , line ) : args = line . split ( ) objects_dic = storage . all ( ) if len ( args ) == 0 : print ( "** class name missing **" ) elif args [ 0 ] not in new_c_list : print ( "** class doesn't exist **" ) elif len ( args ) != 2 : print ( "** instance id missing **" ) elif args [ 0 ] + "." + args [ 1 ] in objects_dic : print ( objects_dic [ args [ 0 ] + "." + args [ 1 ] ] ) else : print ( "** no instance found **" )
prints the string representation of an instance
based on the class name and id
prints the string representation of an instance based on the class name and id
"""prints the string representation of an instance
           based on the class name and id"""
self
line