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:
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
So no code below that will ever be executed.