What causes the attribute error?[ pygame ] : This code is to create a walking animation.
I dont know is it causing an attribute error.
pls help!


     

 class player(pygame.sprite.Sprite):
            def init(self):
                pygame.sprite.Sprite.init(self)
                self.images = []
                for i in range(1, 5):
                    img = pygame.image.load(os.path.join('Assets','Arts','xeonsheet','xeonsheet_' + str(i) + '.png'))
                    self.images.append(img)
                    self.images = self.images[0]
                    self.images = self.images.get_rect
        
        player = player()
        player_list = pygame.sprite.Group()
        player_list.add(player)
        
        Traceback (most recent call last):
          File "C:/Users/User/PycharmProjects/Dreamwind-Chronicles/main.py", line 121, in <module>
            player = player()
          File "C:/Users/User/PycharmProjects/Dreamwind-Chronicles/main.py", line 117, in init
            self.images.append(img)
        Attribute Error: 'builtin_function_or_method' object has no attribute 'append'`enter code here`
    
    
    
What is the problem with the code? 

