alien.py
def check_edge(self):
        """"
        If alien reaches the edge, return True
        """
        screen_rect = self.screen.get_rect()
        if self.rect.right >= screen_rect.right or self.rect.left <= 0:
            return True

        If alien reaches the edge, return True
        
If alien reaches the edge, return True
If alien reaches the edge return True
def check_edge(self):
        screen_rect = self.screen.get_rect()
        if self.rect.right >= screen_rect.right or self.rect.left <= 0:
            return True
def check_edge ( self ) : screen_rect = self . screen . get_rect ( ) if self . rect . right >= screen_rect . right or self . rect . left <= 0 : return True
If alien reaches the edge, return True
If alien reaches the edge return True
""""
        If alien reaches the edge, return True
        """
self