I use visual studio code for coding (python) and now I have to write a program with pygame for my project and I can't import pygame in visual studio code (I can import it with the python script, it just can't be imported in visual studio code).
Open the terminal of Vscode.
Type pip install pygame or pip3 install pygame.
Import pygame and enjoy it.
How to import pygame in visual studio code?