
Fun Microbit Project for Guessing Numbers
Engage in a creative show and tell project involving guessing numbers with the Microbit! Follow the provided code to guess a secret number between 1 to 10. This interactive project is suitable for both physical and virtual Microbit platforms, making it accessible and entertaining for all participants.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Hello Everyone!
INTRODUCTION Hello! My name is Faaris Rattani! I am 10 years old and go to Johns Creek Elementary.
SHOW AND TELL TOPIC My show and tell project is about guessing the number. Go onto the microbit and putdown the following links! # Imports go at the top from microbit import * import random secret_number =random.randint(1,10) guess=0 count=0 while guess !=secret_number: guess=int(input('guess the number between 1 to 10')) count+=1 if guess>secret_number: print('your guess is high') display.scroll('high') elif guess<secret_number: print('your guess is to low') display.scroll('low') display.scroll(secret_number) print('Congratulations! you are correct!') print('you took', count, 'guess.')
Show and tell topic If you are using a virtual microbit, it will still work!
PROJECT HIGHLIGHTS The project is about guessing the number. It will say, Guess the number. If the number was 4 and you put 5, it will say to high. If you put 3, it will say, to low. If you say 4, it will say, Congratulations, you did it!