I'm not sure why I'm getting this error, since I'm fairly new to Python and Pygame, but based on my view of the code, it seems perfectly correct with no syntax error. I also seen the other similar issue to mine, but I've already incorporated the solutions to mine. Can someone please help me understand this issue?
for event in pygame.event.get():
if event.type == pygame.QUIT():
sys.exit()
After I execute this program, it shows this message:(Picture)
If anyone has a solution, please let me know Thanks