So my pygame has been crashing saying not responding to my code, whether on Pycharm and idle both are not working(I'm using a mac). I just saw a question asked by another guy he is having the same issue and a guy responded him by revising some of his code and I used the code he revised and my python for the first time read and successfully ran my code(pygame). For me, I'm following a tutorial and this guy is using a window and coding on windows. we have the exact same code but it is not working on my mac because python is not responding. But for the other code my python responded. Is there a difference between windows and mac on coding pygame or python respond rules, I'm so confused. Here is the code from the tutorial, it is supposed to come out a screen and goes away, but my python can't respond.
"""
import pygame
pygame.init()
win = pygame.display.set_mode((500,500))
pygame.display.set_aption("First Game")
"""