---
# System prepended metadata

title: Untitled

---

41103a053 黃馨怡
Q1 計數器
from microbit import *
import random # 匯入 random 套件

while True:
    if button_a.was_pressed():
        display.show(str(random.randint(5, 10))) # 亂數產生 5 - 10 
Q2 Receive data
![Uploading file..._c3idlcjxa]()
![Uploading file..._5xlhhbhxq]()
