Which function will teach Karel how to spin in a circle one time?
function spin() {
turnRight();
}
function spin() {
turnLeft();
turnLeft();
turnLeft();
turnLeft();
}
function spin() {
turnLeft();
turnLeft();
}
function spin() {
move();
move();
move();
move();
}
Which function will teach Karel how to spin in a circle one time?
Share
The correct answer is:
function spin() {
turnLeft();
turnLeft();
}
Explanation: This function spins Karel in a circle one time by making it turn left twice, which effectively turns it around 180 degrees.