I'm using a website called "Repl.it" to code, and I recently found out that they have Pygame pre-installed. I tried using it, and when I tried to open a screen, I got this error:
Traceback (most recent call last):
File "python", line 3, in <module>
pygame.error: No available video device
Here's the code:
import pygame
pygame.init()
screen = pygame.display.set_mode((400,200))
screen.init()
I have very little coding experience so I have no idea how to fix this. Please help!