Learning Python 3 with the Linkbot

From LinkbotLabs
Jump to: navigation, search

Contents

Authors
Contributors to this book
Installation and Setup
Just getting started? Go here.
Intro
Installing and using Python – where to get help
Hello, World
The famous first program – screen output – variables – numbers and calculations – change a Linkbot's LED color!
Who Goes There?
Interactive input – strings – move a Linkbot's motor!
Count to 10
while loops – play some notes with the Linkbot's buzzer!
Decisions
if statements – move a 2-wheeled Linkbot forwards and backwards!
Linkbot Multitasking
Program flow – make a Linkbot do multiple things at once!
Debugging
Finding out what goes wrong – Linkbot runtime errors!
Defining Functions
Structuring programs with the use of functions – move and beep a 2-wheeled Linkbot with functions!
Advanced Functions Example
(Almost) mind-blowing example of how programmers can think – Linkbot button control!
Lists
Variables containing more than one value – play a song with the Linkbot's buzzer!
For Loops
A second kind of loop – play a range of notes with the Linkbot's buzzer!
Boolean Expressions
Computer logic – True and False – and and or – not – How to use a Linkbot's accelerometer!
Dictionaries
Variables containing key/value pairs – Linkbot musical notes Library and tunes!
Using Modules
Extensions to the standard set of functionality – Linkbot button control!
More on Lists
Using elements or parts of lists
Revenge of the Strings
More advanced text manipulations
File IO
Reading from files and writing to files
Dealing with the imperfect
How to handle errors
Recursion
Recursive Functions
Intro to Object Oriented Programming in Python 3
Basics of OOP (Object Oriented Programming)  – extend the Linkbot class for more functionality!
Intro to Imported Libraries and other Functions
Basic functions from various libraries.
The End
How to go further
FAQ
Some frequently asked questions
Downloads
Download the code examples, other links, etc.