Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from microbit import *
- student_list = [
- "aungaung",
- "maungmaung",
- "mama"
- ]
- ages = [
- 9,
- 12,
- 13
- ]
- while True:
- display.scroll(student_list[0])
- sleep(1000)
- display.scroll(ages[0])
- sleep(1000)
- if ages[0] < 10:
- display.show(Image.HEART_SMALL)
- else:
- display.show(Image.HEART)
- sleep(5000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement