Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours

(singke) #1
interactive shell, 51 - 54
exiting, 52
exploring, 54
help utility, 52
official Python website, 57
reasons for learning, 45
scripts, 51
versions, comparing, 46

Python interpreter, verifying, 46 - 47


Python scripts, 57 - 65


comments, adding, 80
creating
commands used for, 65
in IDLE, 62 - 63
with nano, 64 - 65
functions, 240 - 243
image presentation script
creating, 495 - 496
images, locating, 497 - 498
presentation screen, setting up, 496 - 497
inheritance, 299 - 302
input, 90 - 91
input, allowing, 88 - 89
keywords, 81 - 82
music script, creating, 514 - 515
output, 90 - 91
producing with print function, 71 - 78
phone number validator, 333 - 334
Raspberry Pie game, 410 - 417
running
commands used for, 65
in IDLE, 60 - 62
in interactive shell, 60
separators, 83
users, 79
variables
assigning value to, 82 - 86
data types, 86 - 88
long string values, assigning, 84 - 85
naming, 82
number values, assigning, 85 - 86
Free download pdf