Python provides for the raising and handling of exceptions. An exception is used primarily for managing an error situation, but is also handy in other circumstances e.g. an exception is used internally to end loop iteration.
A full writeup for this presentation is available here.
It’s been a while so first a short(ish) recap of the previous 3 presentations, including in more detail the Input And Output section of session 3. Then I’ll discuss some useful Python Tutorials. And finally we can go on to cover some further aspects of the language.
Tired of iTunes? Time for PiTunes! — HiFi audio from your Pi.
You don’t need a PC or laptop to enjoy listening to hifi audio from your personal collection or Internet streaming. And you won’t have to endure the convoluted iTunes interface.
A low-cost Digital Audio Converter (DAC) or DAC and Amplifier such as offered by HiFiBerry or IQAudio will turn any Raspberry Pi2 or 3 into a low-cost and energy-efficient MPD audio server controlled from a Web browser or an iOS/Android app.
Join us as instructor Stuart Hertzog explains how to set up a DAC on your Pi and demonstrates the free and open-source Linux audio software PiMusicBox, Volumio, RuneAudio, and MoOde Audio.
Discover PiFi audio and a world of listening pleasure!
This meeting we’ll pick up on the Pi GPIO pins (Part 2), looking at input, using switches (push buttons). You’ll learn how to not only have your Pi illuminate lights or close relays, but also to take input via GPIO. Using the input and output GPIO capabilities of the Pi, one can create a home automation system, or even replace your “Nest” thermostat with the Pi.
Bring your Pi and get hands on help after the presentation.
This session adds to what was learnt from Session 2: Syntax and Constructs, and goes on to cover some further language constructs. The sessions now broadly follow the standard tutorial, but in a very condensed way. You are very much advised to refer to the tutorial for a fuller coverage of the language; and indeed, to the full language reference for complete coverage. Some of the examples shown here are taken from the tutorial.