Closed coderfengyun closed 1 year ago
correctAnswers = 0 incorrectAnswers = 0 while (correctAnswers < questions.length) { for each question { log(question); userAnswer = getInput("Your answer: "); correct => { explain("${ emoji } $explanation"):length=compact; log("$correctAnswers / $questions.length"); } incorrect => { explain("${ emoji } The correct answer is: $question.correctAnswer") :length=concise:detail=clear; } } }
In this section, ${correctAnswers} and ${incorrectAnswers} variables are not modified.
It's implied. The AI can infer it. Works in GPT-4.
Great !
In this section, ${correctAnswers} and ${incorrectAnswers} variables are not modified.