Skip to content

crwdns342183:0crwdne342183:0

crwdns312294:0crwdne312294:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255566:0crwdne255566:0, crwdns255570:0crwdne255570:0 | crwdns258516:0crwdne258516:0, crwdns258562:0crwdne258562:0, crwdns258572:0crwdne258572:0

crwdns256908:0crwdne256908:0

crwdns256910:0crwdne256910:0

crwdns256912:0crwdne256912:0 crwdns256914:0crwdne256914:0

crwdns256916:0crwdne256916:0

crwdns256918:0crwdne256918:0

  • crwdns256920:0crwdne256920:0 crwdns256922:0crwdne256922:0
  • crwdns256924:0crwdne256924:0
  • crwdns256926:0crwdne256926:0
  • crwdns256928:0crwdne256928:0
  • crwdns256930:0crwdne256930:0 crwdns256932:0crwdne256932:0 crwdns256934:0crwdne256934:0

crwdns256936:0crwdne256936:0

  • crwdns256938:0crwdne256938:0
  • crwdns256940:0crwdne256940:0
  • crwdns256942:0crwdne256942:0

crwdns256944:0crwdne256944:0

1from microbit import *
2import random
3
4options = ['PE with Joe', 
5           'watch a movie',
6           'play a board game',
7           'tidy our rooms',
8           'learn a song',
9           'bake a cake']
10
11while True:
12    if button_a.is_pressed():
13        choice = random.randint(0, len(options)-1)
14        display.scroll(options[choice])

crwdns256946:0crwdne256946:0

  • crwdns256948:0crwdne256948:0
  • crwdns256950:0crwdne256950:0
  • crwdns256952:0crwdne256952:0