def look_at_obj(self, objecttype):
    # Find an object with the given objecttype
    entity = self.find_object(objecttype)
    
    if entity is None:
        # If the object is not found, explore the environment
        self.explore()
    else:
        # Go to a desklamp
        desklamp = self.find_object('desklamp')
        
        if desklamp is None:
            # If the desklamp is not found, explore the environment
            self.explore()
        else:
            # Pick the object and place it on the desklamp
            self.take(entity.name, entity.in_on)
            self.put(entity.name, desklamp.in_on)
            # Turn on the desklamp to examine the object
            self.turn_on(desklamp.name)