The Official BBC Micro by Gareth Halfacree

The Official BBC Micro by Gareth Halfacree

Author:Gareth Halfacree
Language: eng
Format: epub
ISBN: 9781119413844
Publisher: Wiley
Published: 2017-10-23T00:00:00+00:00


THE PYTHON PROGRAMMING language, named not for the snake but for the comedy troupe Monty Python, started life in 1989 as a hobby project of developer Guido van Rossum. Since its official release in1991, Python has grown in popularity thanks to its flexibility and a beginner-friendly format free of the need for hundreds of curly braces or semicolons you find in rival languages. Instead, Python makes heavy use of whitespace—space or tab indentations—to control where blocks of code begin and end.

Technically speaking, the BBC micro:bit is not programmed in Python itself but a variant of the language designed specifically for the BBC micro:bit and other microcontroller-based development and educational boards: MicroPython. MicroPython is a version of Python created by Damien George with certain parts of the language’s standard libraries which aren’t required for microcontroller use stripped away and other libraries added to produce programs which run well on the BBC micro:bit and similar devices. The MicroPython code for the BBC micro:bit was contributed by volunteers from all over the world, led by Damien George, Nicholas Tollervey, and Carlos Pereira Atencio, in an effort to help people learn Python programming using the device.

As in Chapter 5, ‘JavaScript Blocks’, and Chapter 6, ‘JavaScript’, in this chapter you’re introduced to the Python Editor and learn to write a series of programs that make the most of the BBC micro:bit’s capabilities. Finally, you’re able to make a quick-fire game in which you’re given the task of catching ever-faster falling fruits before they hit the ground. These programs are the same between Chapter 5, Chapter 6, and Chapter 7, allowing you to easily compare and contrast the three languages to find the one that suits you best.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.