So I have a list of images to be indexed inside a class.
Code with error:
imgs = [pygame.image.load("myimg1.png"), pygame.image.load("my