<s> import pygame <EOL> from pygame . locals import * <EOL> from sys import exit <EOL> from random import * <EOL> pygame . init ( ) <EOL> screen = pygame . display . set_mode ( ( <NUM_LIT> , <NUM_LIT> ) , <NUM_LIT:0> , <NUM_LIT:32> ) <EOL> screen . lock ( ) <EOL> for count in range ( <NUM_LIT:10> ) : <EOL> random_color = ( randint ( <NUM_LIT:0> , <NUM_LIT:255> ) , randint ( <NUM_LIT:0> , <NUM_LIT:255> ) , randint ( <NUM_LIT:0> , <NUM_LIT:255> ) ) <EOL> random_pos = ( randint ( <NUM_LIT:0> , <NUM_LIT> ) , randint ( <NUM_LIT:0> , <NUM_LIT> ) ) <EOL> random_size = ( <NUM_LIT> - randint ( random_pos [ <NUM_LIT:0> ] , <NUM_LIT> ) , <NUM_LIT> - randint ( random_pos [ <NUM_LIT:1> ] , <NUM_LIT> ) ) <EOL> pygame . draw . rect ( screen , random_color , Rect ( random_pos , random_size ) ) <EOL> screen . unlock ( ) <EOL> pygame . display . update ( ) <EOL> while True : <EOL> for event in pygame . event . get ( ) : <EOL> if event . type == QUIT : <EOL> pygame . quit ( ) <EOL> exit ( ) </s>
