I'm trying to import cs50 in my program on VS Code, it keeps reporting: Warning. import "cs50" could not be resolved
04:41 24 Sep 2026

I'm trying a program in Python that starts with

from cs50 import get_string

s = get string("Do you agree? ")

The problem is cs50 in my VS Code is showing an error/warning:

import "cs50" could not be resolved

I tried capitalizing cs50 to CS50, but nothing changed. I added #include , as in a C program, but it turn to comment.

What can I do to remove the error so I can run the program correctly?

python vs-code