![]() ![]() Here's how I teach my students to start using it. Then run the following (which may require administrator access): python get-pip. To install pip, securely download get-pip.py. If you want to do it the manual way, the now-recommended method is to install using the get-pip.py script from pips installation instructions. Mu is a great way to show students how easy it is to get started with Python. Install using the manual way detailed below. In the past couple of years, I have introduced students to the Raspberry Pi and Python programming using the Mu editor. Mu is installed by default on the Raspberry Pi, which is a great plus. Then you can run Mu from the command line or create a shortcut using: $ python -m pip install shortcut mu-editor -user First, ensure you have Python 3 installed: $ python -versionĪssuming you have Python version 3 or better, install Mu using pip, the Python package manager: $ python -m pip install mu-editor -user Or, you can use Python to do the install. On Fedora or similar: $ sudo dnf install mu On Ubuntu or Debian: $ sudo apt install mu-editor On Linux, you can install Mu from the command line. It's easy to use and comes with excellent documentation and tutorials. Mu can be installed on Linux, macOS, and Windows. Nick is an educator who created Mu, a Python editor specifically for young programmers (and even older ones like me). IDLE was a big improvement, but at P圜onUS 2019 in Cleveland, I saw a presentation by Nicholas Tollervey that changed the way I learned and taught Python. I taught teachers and students how to create turtle graphics using IDLE. I took some online courses and read many excellent books about Python programming. It was much easier than entering commands into the Python shell, plus I could write and save programs for later use. In the early days of my Python adventure, I used IDLE, Python's integrated development environment. Then you can start having some fun creating turtle graphics. Next, import the turtle module into Python with import turtle or import turtle as t. If you are using a Windows computer, you will need to install Python first by going to the Python website and downloading the latest stable version. On a Linux or macOS computer, you can just open a terminal, enter the word python, and you'll see the Python shell. Soon, I started using the turtle module to teach students Python programming basics, including using it to create interesting graphics. I enjoyed learning how to program the virtual turtle and later helping students to do the same.Ībout five years ago, I learned about Python's turtle module, and it was the segue to my Python journey. Many years ago, in the days of the Apple II and Logo programming, I learned about turtle graphics. Teaching kids to code is very popular in schools. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |