Question & Answer

If Karel is facing North and the code

If Karel is facing North and the code
turnLeft();
turnLeft();
runs; which direction is Karel facing now?

1 Answer

Verified archive
Quizzma TeamMarch 29, 2025

Karel is facing South.

Explanation:

When Karel turns left while facing North, it turns to face West. After another left turn, Karel will be facing South. Each left turn changes the direction by 90 degrees in a counter-clockwise direction.