Question
What makes the following command an invalid Karel command?
turnleft();
It should end in a colon rather than a semicolon
The l should be a capital L
It should start with a capital T
This command is correct
turnleft();
It should end in a colon rather than a semicolon
The l should be a capital L
It should start with a capital T
This command is correct
Answers
GPT-5 mini
"The l should be a capital L."
Karel is case-sensitive; the correct command is turnLeft(); — note the capital L. The semicolon is correct, and the initial t should remain lowercase.
Karel is case-sensitive; the correct command is turnLeft(); — note the capital L. The semicolon is correct, and the initial t should remain lowercase.