You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new folder on your machine where you want to put this repository if you don't already have one you want to use.
Copy the Clone or Download path for this repository from GitHub.
In VSCode from the command pallette (Ctrl-Shift-P) run Git: Clone
Paste the path into the path field which pops up
Select your new folder you created on your machine
A new folder for the repository with the repository files should be in the folder you selected showing in the Explorer window in VSCode on the left side.
Create the 2 .py files described in the tutorial in your repository.
mod.py (The version which generates some output when run as a script by using the dunder variable name about half way through the tutorial.)
fact.py
Create a .py file named importer.py.
Have importer.py import the sys module.
Have importer.py print sys.path.
Have importer.py import the mod.py module.
Have importer.py import the fact.py module.
Have importer.py print the location of mod.py.
Have importer.py print the location of fact.py.
Push your updated file to your GitHub repository
This can be done in VSCode.
In VSCode click on the Source Control button.
You should see the files that had changes. (Mine has the original file which shows an M next to it and a new file which says checkpoint in the name. You really only need to push the original file, but if you push both it shouldn't hurt anything.)
Hover over the changed file. Click the + sign to stage the change.
Enter a commit message in the message field and click the checkmark to commit the change.
Click on the 3 dots for more actions and select Sync. This will push the updated file to your GitHub repository.
Submit the link to your GitHub repository on Canvas.