If Karel is initially facing North and executes the code turnLeft(); turnLeft();
, he will turn 90 degrees to the left twice.
- The first
turnLeft()
will turn Karel from North to West. - The second
turnLeft()
will turn Karel from West to South.
Therefore, after running the code, Karel is now facing South.