Почему когда в онлайн компиляторе пишу этот код
import pygame
pygame.init()
screen = pygame.display.set_mode([640,480])
running = True
for event in pygame.event.get():
if event.type == pygame.QUIT
running = False
pygame.quit()
Выходит эта ошибка?
File "/tmp/sessions/2260800513a95fb4/main.py", line 6
if event.type = pygame.quit
^
IndentationError: expected an indented block​
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.