Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Learning Python 3 with the Linkbot

0% developed
From Wikibooks, open books for an open world
This is a conversion of theNon-Programmer's Tutorial for Python 3 to include examples using theBarobo Linkbot; a modular robot designed for teaching math and programming.
This wikibook is no longer maintained by the core developers at Barobo.
A newer, up-to-date version of this original text may be foundat the linkbotlabs wiki. (External website) -Archived version

Contents


Aprintable version of Learning Python 3 with the Linkbot is available. (edit it)
Wikipedia has related information atPython (programming language).
Authors
Contributors to this book
Installation and Setup
Installing and setting up the required software
Intro
A brief introduction
Hello, World (With Linkbots! Change a Linkbot's LED color)
The famous first program – screen output – variables – numbers and calculations
Who Goes There? (With Linkbots! Move a Linkbot's motor)
Interactive input – strings
Count to 10 (With Linkbots! Play some notes with the Linkbot's buzzer)
while loops
Decisions (With Linkbots! Move a 2-wheeled Linkbot forwards and backwards)
if statements
Linkbot Multitasking (Make a Linkbot do multiple things at once)
Program flow
Debugging
Finding out what goes wrong
Defining Functions (With Linkbots! Move and beep a 2-wheeled Linkbot with functions)
Structuring programs with the use of functions
Advanced Functions Example
(Almost) mind-blowing example of how programmers can think
Lists (With Linkbots! Play a song with the Linkbot's buzzer)
Variables containing more than one value
For Loops (With Linkbots! Play a range of notes with the Linkbot's buzzer)
A second kind of loop
Boolean Expressions (How to use a Linkbot's accelerometer)
Computer logic –True andFalse –and andor –not
Dictionaries (Storing note values in a dictionary to play on a Linkbot)
Variables containing key/value pairs
Using Modules
Extensions to the standard set of functionality
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 (Extend the Linkbot class for more functionality)
Basics of OOP (Object Oriented Programming)
Intro to Imported Libraries and other Functions
Basic functions from various libraries.
The End
How to go further
FAQ
Some frequently asked questions
Retrieved from "https://en.wikibooks.org/w/index.php?title=Learning_Python_3_with_the_Linkbot&oldid=4089587"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp