'Blit images on top of one another in PyGame

I am relatively new to pygame (and also terrible) so naturally I am having many problems. One of which is using images. How would I go about "layering" images in PyGame? I have searched and come to the conclusion that surfaces may help, but I can't seem to figure out how to use them. Any help would be greatly appreciated! I'm simply trying to blit an image above my sprites, but the sprites always end up on the top of the image.

I have attempted to fill the screen before blitting the image, but it didn't work.

    display.fill((0,0,255))
    display.blit(pygame.transform.scale(teacher_image, (500,500)),(150,200))

Any suggestions?



Solution 1:[1]

I fixed the issue - I just needed to update the screen haha

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gummybearman06