Python Online Editor Sign Up
We will be using the online IDE cloud9 to write python code this semester. Below are instructions for how to sign up, name a file, create a new file, and turn in a file. Refer back to this sheet if you are having difficulties.
Sign Up Instructions
- Go to https://c9.io/web/sign-up/free
- Create account
- Verify your email address
- Click the link to go to your dashboard
- Click the plus sign to Create a new workspace
- Name your workspace smhs-
(example: smhs-76paul ) and give your workspace a description - Make your workspace private
- Click "Create workspace" at the bottom of the page
- This will take a few seconds to set you up, but it will look like this:
- From the top panel select window, pick share (third choice from the top)
- Enter ttwu,
, in the "Invite People" section - this shares your workspace with your teachers and allows them to add comments.
Creating a New File
- Click the plus button near the top of the page to create a new file
- Enter this into your editor
- Press Ctrl-s to save the file. Enter the filename helloworld.py and press the save button
Parts of the IDE
- File tree
- Bash/terminal
- Editor
You can ignore the other parts for now!
Running Python
- In the bottom half of the screen there should be a tab called "bash"
- If there is not a tab called "bash", click the plus button and choose "new terminal"
- To run the interactive shell: type
python3
into the prompt - To run a file: type
python3 [filename]
, but instead of[filename]
use the name of the file you are trying to run