Python execution starts at the top of the file, and proceeds down.
Indentation is significant: lines which are indented to the right are part of a different code block to the line above.
Your code starts with a loop, the only way out of which is to exit the program:
for event in pygame.event.get():
if event.type == pygame.QUIT:
So no code below that will ever be executed.