Use this template to quickly get started writing simple Python console applications.
Steps
Log into GitHub
You'll have to be logged into GitHub, or create an account if you don't have one. Click here to sign up to GitHub.
Create a codespace from this template
At the top of the repository page, click "Code" -> "Create codespace on main". This can take a couple minutes to set up.
Ensure the necessary extensions are installed
With the codespace open in your browser, head to the Extensions pane and make sure that the Python extension is installed.
Run the Python program
From the Explorer pane, open app.py. To run the program, hit the play button in the top right corner.
After running the program, you should see "Hello world!" appear in the terminal.
Stop the codespace when you're finished using it.
Free codespace usage is time-limited. To stop the codespace, click "Codespaces" in the very bottom left corner. A set of options will appear at the top of the screen - select "Stop Current Codespace".
Tips
Copy file path
To get the path of a file, right-click a file in the Explorer pane and click "Copy Path".
