4.2.1 Ghost Codehs Portable -

Two smaller circles placed precisely relative to the head’s center.

When students fail , it is rarely because they cannot write a loop. It is because of subtle logical errors. 4.2.1 Ghost Codehs

The CodeHS autograder is strict. To get a 100% on , follow these final checks: Two smaller circles placed precisely relative to the

Exercise 4.2.1 Ghost serves as the practical application of these new conditional concepts. It is often a "Check Your Understanding" activity or a mini-project that asks students to synthesize logic with graphics (the CodeHS turtle) or console output. The CodeHS autograder is strict

While you can write the code to draw each foot individually, 4.2.1 is often an introduction to efficiency. If you have to draw three feet, you can use a simple for loop or create a drawFoot function to avoid repeating your code. Common Pitfalls to Avoid

Note: If your version of 4.2.1 Ghost is text-based (console only), the logic changes to printing ASCII art or a story based on user input, but the graphical version is the most common interpretation.

If you use a while loop and forget to increment your counter, the console will freeze or crash. Example of bad code: