PREVIEW: We already know how to make a list and access every single item in that list using a loop.
But what if you only want to use just one item in the list? To do that you use an index.
PREVIEW: We already know how to make a list and access every single item in that list using a loop.
But what if you only want to use just one item in the list? To do that you use an index.
Your micro:bit is not set up for this program. Follow these steps to use your device with Codesters:
Your micro:bit has an old version of the Codesters binary file. Follow these steps to update the file on your micro:bit:
Warning: This will erase any existing program on your micro:bit.
Having trouble? Check out the micro:bit instructions to update your firmware.
Setting up your micro:bit
Calibrate your micro:bit by tilting it until all the LEDs are lit.
For a demonstration see the micro:bit calibration instructions.
Try the following steps to connect to your Micro:bit:
1. You may need to reload this page and try your program again.
2. Try disconnecting and reconnecting your Micro:bit. Then reload the page and run your program again.
3. If you are still having problems your Micro:bit may have an old firmware version that is incompatible with Codesters.
To update the firmware follow these Micro:bit instructions.
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time. Try stopping other Codesters projects or closing other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit, reloading this page, and reconnecting your Micro:bit.
Status: Connected!
Status: Connecting...
Status: Still connecting...
Status: Failure
Status: Not Found
Is your Micro:bit connected?
Welcome to Intro to Python 2! In this module, you'll learn a lot about how to make your code neater, more efficient, and more powerful.
Recall that you worked with lists in Intro to Python 1. A list is a group of items stored in a particular order. In this lesson, you'll explore how we can reference individual items in a list using the index. An index is the position of an item in a list.
You'll work with a special group of sprites that has been split into three sections: head, middle, and legs. By using different indexes, you'll make a program that mixes and matches different sprite parts to create a wacky picture!
Learning Objectives:
Students will be able to:
Project Examples: