In many software applications, developers like to hide some easter eggs for users to discover, bringing some fun. Similarly, there are three hidden easter eggs in the micro:bit Python programs that are very interesting, and everyone can give them a try.
First, we need to download a Python program to the micro:bit. You can use mu or the community’s online Python Editor (http://microbit.site/), and write a blank program to the micro:bit. Then, in mu’s REPL, you can see the easter eggs by following the steps below.
Easter Egg 1:
In the REPL, type import this to see the first easter egg, the Zen of Python.
Easter Egg 2:
In the REPL, type import love to see the love easter egg.
Easter Egg 3:
The anti-gravity easter egg, for the method please click on Read the original text below.
Note:
-
The easter eggs are only effective the first time they are run; entering them a second time will not work, and you need to reset to see the effect again.