๐Ÿ“ Tools

CodeHS: Create an Account, Start a Python Project, and Share Code ๐Ÿš€

P
Author
PyLand Team
๐Ÿ“…
Published
30.03.2026
โฑ๏ธ
Reading time
2 min
๐Ÿ‘๏ธ
Views
485
๐ŸŒฑ
Level
Beginner

CodeHS lets you write and run Python directly in a browser. A modern browser and an internet connection are enough; you do not need to install Python or a separate IDE yet.

The platform interface can change. This guide therefore uses section and command names instead of button colors or panel positions.

1. Create a Free Student Account

  1. Open CodeHS and select Sign Up For Free.
  2. Choose the Student role.
  3. Find Not in a section?.
  4. Select the free Free option.
  5. Complete registration and sign in.

Never share your password or sign-in details. If registration does not complete, contact your mentor and explain which stage is failing.

2. Create a Python 3 Project

  1. After signing in, select ยซ+ยป in the top bar.
  2. Choose Python 3.
  3. If the ยซ+ยป button is unavailable, scroll to Start coding in the Sandbox on the home page.
  4. Select Python, then Python 3.
  5. Confirm that the sandbox opens with a main.py file.

3. Find the Main Editor Areas

You will use:

  • the project file list containing main.py;
  • the code editor;
  • an output area labeled Console, Terminal, or Output;
  • the Run command.

The layout, size, and theme can vary. CodeHS supports different layouts and light or dark console themes, so do not rely on a particular color or side of the screen.

4. Run Your First Program

Write this in main.py:

print('Hello, World!')

Run the program with Run. Find the output area and confirm that it displays Hello, World! without an error message.

If no result appears:

  1. Confirm that the code is in main.py.
  2. Check that quotes and parentheses are paired.
  3. Save and run the program again.
  4. Use layout settings to find Console, Terminal, or Output.
  5. If the problem remains, send your mentor the code and complete error text.
  1. Open the required Sandbox program.
  2. Select Collaborate.
  3. Select Enable Collaboration.
  4. Copy the generated collaboration link.
  5. Open it in a private browser window and confirm that the project is available.
  6. Paste the link into the assignment submission field.

A collaboration link may allow another person to edit the program. Send it only through the assignment form or directly to your mentor. Do not publish it openly, and never put passwords, tokens, or personal data in the code. Disable collaboration after the review when it is no longer needed.

Common Problems

  • Sign-in fails โ€” verify the email and registration method, try another browser, then contact your mentor.
  • Python 3 is missing โ€” use the language search or filter in Sandbox.
  • The project is not saved โ€” confirm that you are signed in, then reopen the Sandbox program list.
  • Run shows no result โ€” check syntax and find Console, Terminal, or Output.
  • No collaboration link appears โ€” make sure you selected Enable Collaboration after opening Collaborate.
  • The link does not open โ€” create it again and test it in a private window; contact your mentor if the problem remains.

Your environment is ready. Return to the lesson and continue working in main.py.

Your reaction to the article

๐Ÿ’ฌ Comments (0)

๐Ÿ” Sign in to leave a comment
๐Ÿšช Login
๐Ÿ’ญ

No comments yet

Be the first to share your opinion about this article!

๐Ÿ”— Similar

Similar articles

Continue learning with these materials

๐Ÿ“

Setting Up Your Environment: Python, pip, and VS โ€ฆ

Before writing code locally, you need to set up three tools: Python, pip, and VS...

๐Ÿ“… 04.06.2026 ๐Ÿ‘๏ธ 313