Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Get Started with micro:bit and Python

Get Started with micro:bit and Python

Save & Edit Scripts

It’s always a good idea to save your scripts so that you can open and improve them later.  This activity’s step-by-step video and matching checklist instructions show how to save and reopen a script.

Make sure to follow along with your own computer and micro:bit module.

]

 

  • Enter the script below into the micro:bit Python Editor.  (It’s just the default script with HEART changed to HAPPY and ’Hello’ changed to ’Hi!’.)
# Imports go at the top
from microbit import *

# Code in a 'while True:' loop repeats forever
while True:
    display.show(Image.HAPPY)
    sleep(1000)
    display.scroll('Hi!')

 

  • Click the Edit project name icon, to the left of the ‘Untitled project’ name.
  • Change the name to happy-image-hi-text, and click Confirm.
  • Click the Save button.


 

  • Close the Project saved popup.
  • Verify that the name changed from ’Untitled project’ to ’happy-image-hi-text’.


 

  • Open a file browser (Windows Files Explorer, Mac Finder, or Chromebook Files).  
  • Check your Downloads folder and make sure you can find happy-image-hi-text.hex.


 

  • Change to the existing script so that you can verify the change reverts when you open the script you just saved.  

 

  • Click the micro:bit Python Editor’s Open button
  • Select happy-image-hi-text in the Open dialog
  • Then click the Open button.  
  • Lastly, click Replace in the ‘Confirm replace project’ popup.
  • Verify that the script changes back to the version you saved.

 

 


Printer-friendly version
Try This: Make Changes
Prev
Editor Controls and Left Side Panel
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress