Mu is a simple editor for writing and running Python programs. Follow these four easy steps to install Mu on your computer and write your first program.
Mu is available for Windows, Mac and Linux.
Follow the detailed installation instructions at https://codewith.mu/en/download
Find the Mu icon on your laptop. Click it to open Mu. The first time you run Mu, it may take a few seconds to open. Be patient!
When you see this window, click the Mode
button.
When you see this message, click Python 3
and then click OK
.
Type in these two lines of code - use your own name instead of "Gita" (unless your name is Gita, of course).
my_name = 'Gita'
print('Hello,', my_name)
Then click the Save
button and give your program file a name - we called ours hello
.
Can you guess what the program will do when you run it?
Click the Run
button and look at the new window that opens at the bottom of Mu. This is where the Python print
command sends its output. Did you guess right about what the program would do?
You have installed Mu on your computer and tested it. You are all set to learn Python at CoderDojo.