Magic 8 Ball - A micro-python task


In this task we will be using the random.choice() function to pick a random item from a list.
The second part of the task will be using the accelerometer to detect a shake


You can have as many items in your list as you would like.
Don't forget that each item should be enclosed in

" "

and at the end of the list you must end with

]

The magic8 ball code now uses

if accelerometer.was_gesture("shake"):

to see if the micro:bit has been shaken.