diff --git a/docs/lessons/glowing-pendulum/quiz-answers.md b/docs/lessons/glowing-pendulum/quiz-answers.md
index 3d3dfd85..479fb667 100644
--- a/docs/lessons/glowing-pendulum/quiz-answers.md
+++ b/docs/lessons/glowing-pendulum/quiz-answers.md
@@ -20,7 +20,7 @@ We are creating a forever loop to constantly display the appropriate brightness
-```
+```blocks
let acceleration = input.acceleration("y")
```
@@ -28,16 +28,16 @@ let acceleration = input.acceleration("y")
-```
-acceleration = math.abs(acceleration)
+```blocks
+let acceleration = math.abs(acceleration)
```
## 4. Write the code that uses the acceleration value from question #3 to set the brightness on the BBC micro:bit.
-```
-acceleration = acceleration / 4
+```blocks
+let acceleration = acceleration / 4
led.setBrightness(acceleration)
```
diff --git a/docs/lessons/guess-the-number/quiz-answers.md b/docs/lessons/guess-the-number/quiz-answers.md
index 9521567d..684ff05e 100644
--- a/docs/lessons/guess-the-number/quiz-answers.md
+++ b/docs/lessons/guess-the-number/quiz-answers.md
@@ -12,8 +12,9 @@ Answers may vary. Generally, on button pressed run code when an input button is
Write the line of code that creates a condition when the BBC micro:bit button A is pressed.
-```
-input.onButtonPressed("A", () => {
+```blocks
+input.onButtonPressed(Button.A, () => {
+
})
```
@@ -21,13 +22,13 @@ input.onButtonPressed("A", () => {
Write the line of code that creates a **local variable** and a **random number**.
-```
+```blocks
let randomNumber = Math.random(10)
```
## 4. Consider the following code
-```
+```blocks
randomNumber = Math.random(10)
```
diff --git a/docs/lessons/guess-the-number/quiz.md b/docs/lessons/guess-the-number/quiz.md
index c1d3379a..b7511109 100644
--- a/docs/lessons/guess-the-number/quiz.md
+++ b/docs/lessons/guess-the-number/quiz.md
@@ -24,7 +24,7 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
## 4. Draw the area that could be lit based on the code below. Explain why you chose to draw that number.
-```
+```blocks
let randomNumber = Math.random(10)
basic.showNumber(randomNumber, 150)
```