6.00.2x-pset2.py
def isPositionInRoom(self, pos):
        """
        Return True if pos is inside the room.

        pos: a Position object.
        returns: True if pos is in the room, False otherwise.
        """
        if pos.getX() < 0 or pos.getY() < 0:
            return False
        return (pos.getX() < self.width and pos.getY() < self.height)

        Return True if pos is inside the room.

        pos: a Position object.
        returns: True if pos is in the room, False otherwise.
        
Return True if pos is inside the room.
pos: a Position object.
returns: True if pos is in the room, False otherwise.
Return True if pos is inside the room . pos : a Position object . returns : True if pos is in the room False otherwise .
def isPositionInRoom(self, pos):
        if pos.getX() < 0 or pos.getY() < 0:
            return False
        return (pos.getX() < self.width and pos.getY() < self.height)
def isPositionInRoom ( self , pos ) : if pos . getX ( ) < 0 or pos . getY ( ) < 0 : return False return ( pos . getX ( ) < self . width and pos . getY ( ) < self . height )
Return True if pos is inside the room.
Return True if pos is inside the room .
"""
        Return True if pos is inside the room.

        pos: a Position object.
        returns: True if pos is in the room, False otherwise.
        """
self
pos