TextWorldAdventure.py
def look(self, noun):
        '''
        returns none and accepts noun argument which the user wants to 
        look at and prints the name and the description of the passed-in noun.
        Looks at the player or location if noun is "me" or "here" correspondingly.
        Effects: prints name and description of the passed-in noun. 
        
        look: World Str -> None
        '''
        if noun == "me":
            self.player.look()
        elif noun == "here":
            self.player.location.look()
        elif noun in list(map(lambda z: z.name ,self.player.inventory)):
            for item in self.player.inventory:
                if item.name == noun:
                    item.look()
        elif noun in list(map(lambda z: z.name, self.player.location.contents)):
            for item in self.player.location.contents:
                if item.name == noun:
                    item.look()
        else:
            print(self.msg_look_fail)

        returns none and accepts noun argument which the user wants to 
        look at and prints the name and the description of the passed-in noun.
        Looks at the player or location if noun is "me" or "here" correspondingly.
        Effects: prints name and description of the passed-in noun. 
        
        look: World Str -> None
        
returns none and accepts noun argument which the user wants to
look at and prints the name and the description of the passed-in noun.
Looks at the player or location if noun is "me" or "here" correspondingly.
Effects: prints name and description of the passed-in noun.

World Str -> None
returns none and accepts noun argument which the user wants to look at and prints the name and the description of the passed - in noun . Looks at the player or location if noun is " me " or " here " correspondingly . Effects : prints name and description of the passed - in noun . World Str - > None
def look(self, noun):
        if noun == "me":
            self.player.look()
        elif noun == "here":
            self.player.location.look()
        elif noun in list(map(lambda z: z.name ,self.player.inventory)):
            for item in self.player.inventory:
                if item.name == noun:
                    item.look()
        elif noun in list(map(lambda z: z.name, self.player.location.contents)):
            for item in self.player.location.contents:
                if item.name == noun:
                    item.look()
        else:
            print(self.msg_look_fail)
def look ( self , noun ) : if noun == "me" : self . player . look ( ) elif noun == "here" : self . player . location . look ( ) elif noun in list ( map ( lambda z : z . name , self . player . inventory ) ) : for item in self . player . inventory : if item . name == noun : item . look ( ) elif noun in list ( map ( lambda z : z . name , self . player . location . contents ) ) : for item in self . player . location . contents : if item . name == noun : item . look ( ) else : print ( self . msg_look_fail )
returns none and accepts noun argument which the user wants to
look at and prints the name and the description of the passed-in noun.
returns none and accepts noun argument which the user wants to look at and prints the name and the description of the passed - in noun .
'''
        returns none and accepts noun argument which the user wants to 
        look at and prints the name and the description of the passed-in noun.
        Looks at the player or location if noun is "me" or "here" correspondingly.
        Effects: prints name and description of the passed-in noun. 
        
        look: World Str -> None
        '''
self
noun