load images pygame

import pygame
from pygame.locals import*
img = pygame.image.load('clouds.bmp')

white = (255, 64, 64)
w = 640
h = 480
screen = pygame.display.set_mode((w, h))
running = 1

while running:

Here is what the above code is Doing:
1. It’s loading the image into the variable img.
2. It’s creating a white background.
3. It’s creating a 640×480 window.
4. It’s setting the window title to “Clouds”.
5. It’s setting the window icon to the image.
6. It’s setting the background color to white.
7. It’s setting the running variable to 1.
8. It’s creating a while loop that will run as long as the running variable is equal to 1.
9. It’s filling the screen with the color white.
10. It’s blitting the image to the screen.
11. It’s updating the display.
12. It’s checking for events.
13. If the event is QUIT, it will set the running variable to 0, which will cause the while loop to end.
14. It will then quit pygame.