L.I to learn how to code the microbit in python
The first onr shows the python for flashing hearts. It flashes between the small herart icon and the large heart icon. THe main thing to ntice between the pythin coding and the blocks is the the forever loop is at the top nd bottom on the centent of both.
This is the example for coding hte buttons, the main thing to notice is that the "def" which is defining what hte on_button_pressed will make the microbit do.
No comments:
Post a Comment