From d951cb41f36ceed23e68c0a846ffec9c84e89bc3 Mon Sep 17 00:00:00 2001 From: GanKnight <69836902+GanKnight@users.noreply.github.com> Date: Tue, 15 Sep 2020 22:06:43 +0800 Subject: [PATCH] Update Python code (6) --- Python code (6) | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python code (6) b/Python code (6) index c67a97e..db596be 100644 --- a/Python code (6) +++ b/Python code (6) @@ -1,6 +1,6 @@ from microbit import * while True - if button_a.is_pressed: + if button_a.is_pressed(): display.show(Image.HAPPY) else: display.show(Image.SAD)