I'm creating a game in which if a certain condition is met it will add the rect inside the array
tail.append(pygame.draw.rect(screen, (0, 0, 0), (350, 350, 25, 25)))
and while it did really add it in the array when I printed the array in the console, but the rect disappears immediately from the display game. I figured out that its because it only shows in when the the condition is met but after the coordinates changes it'll disappear which is only a second.