Skip to main content

Parsons Problems

Learn what CodeHS Parson Problems are: Unique drag & drop exercises where users order code blocks to grasp programming logic.

Eli Hernandez avatar
Written by Eli Hernandez
Updated over 2 weeks ago
image showing that this is a free feature

Parsons Problems are a type of coding exercise available on CodeHS. Instead of writing code from scratch, a user is given a set of code blocks that are mixed up. The user's task is to drag, drop, and sometimes indent these blocks into the correct order to create a working program.

GIF demonstrating drag and drop in Parsons Problems

How do Parsons Problems work on CodeHS?

In CodeHS Parsons Problems, users arrange provided code blocks to build a program. They must place the blocks in the correct order and adjust the indentation before checking their solution. If errors are found, they refine their arrangement until the program works as intended.

Steps to Solve a Parsons Problem:

  1. Drag the provided code blocks into the solution area.

  2. Arrange the blocks in the correct vertical order.

  3. Adjust the indentation by dragging blocks horizontally.

  4. Click the "Check" button to test your arrangement.

  5. Review the feedback on any errors.

  6. Modify the order or indentation based on the feedback.

  7. Repeat steps 4-6 until the program is correct.

GIF demonstrating checking the functionality of Parsons problems on CodeHS.


Still have questions? Contact our team at hello@codehs.com to learn more!

Did this answer your question?