Answer the question
In order to leave comments, you need to log in
How to run the code copied from the Internet on Visual studio?
I copied the snake code from the Internet written in the pygame library in python, but unfortunately it did not start and threw an error on the very first line, the screen is below
Answer the question
In order to leave comments, you need to log in
Learn the language gradually, rather than copying someone else's work.
For example, learn about virtual environments in Python and dependency management with pip .
This will bring you much more benefit.
In general, it would be worth learning the language first. I advise you to read some books like the two volumes of Lutz "Learning Python" (if you are lazy, then I sympathize, you have no desire to code)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question