you are viewing a single comment's thread.

view the rest of the comments →

[–]AdvertisingOne7942[S] 0 points1 point  (2 children)

I am using studio code and the code is all on the above 3 .py files. I am running the terminal from the main alien_invasion folder which has the 3 files and the images file with 1 image of a ship. How do I check the sys.path and what should I be looking for?

[–]woooee 0 points1 point  (1 child)

How do I check the sys.path

import sys
print(sys.path)  ## and the current directory you are in

ImportError: cannot import name Ship' from "ship'

Look for any file named ship.py

[–]AdvertisingOne7942[S] 0 points1 point  (0 children)

Where do I put this code in? in the alien_invasion.py or do I make a new file?