Dice
Hello everyone! My name is Riaan, I am 9 years old, and today I am excited to present my project. I created a digital dice using a micro and Python coding. When button A is pressed, the program uses the random function to choose a number between 1 and 6. Then, the micro displays a picture of a dice showing the number. I used “import random” to make the numbers unpredictable each time. This project helped me learn how randomness works in coding. I enjoyed making this project because it is fun, interactive, and similar to playing a real dice game.
Attend our in-person Robotics & Math