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.
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:
Drag the provided code blocks into the solution area.
Arrange the blocks in the correct vertical order.
Adjust the indentation by dragging blocks horizontally.
Click the "Check" button to test your arrangement.
Review the feedback on any errors.
Modify the order or indentation based on the feedback.
Repeat steps 4-6 until the program is correct.
Still have questions? Contact our team at hello@codehs.com to learn more!