US Trends

what can be used to teach karel to turn right?

The correct thing to use to teach Karel to turn right is functions.

In CodeHS-style Karel, you define a new function called turnRight() that is built from three turnLeft() commands, like:

javascript

function turnRight() {
    turnLeft();
    turnLeft();
    turnLeft();
}

This new function “teaches” Karel how to turn right, so any multiple‑choice question like “What can be used to teach Karel to turn right?” has the answer: Functions.

Information gathered from public forums or data available on the internet and portrayed here.