alien.py
def check_edges(self):
        """Return True if alien is at the edge of screen."""
        screen_rect = self.screen.get_rect()
        if self.rect.right >= screen_rect.right:
            return True
        elif self.rect.right <= 0:
            return True
Return True if alien is at the edge of screen.
Return True if alien is at the edge of screen.
Return True if alien is at the edge of screen .
def check_edges(self):
        screen_rect = self.screen.get_rect()
        if self.rect.right >= screen_rect.right:
            return True
        elif self.rect.right <= 0:
            return True
def check_edges ( self ) : screen_rect = self . screen . get_rect ( ) if self . rect . right >= screen_rect . right : return True elif self . rect . right <= 0 : return True
Return True if alien is at the edge of screen.
Return True if alien is at the edge of screen .
"""Return True if alien is at the edge of screen."""
self