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

(singke) #1
subclasses in its own object module file, 301 - 302

string comparison operators, 122 - 124


string concatenation, 79


string literals, 72


strings


ASCII code, 200
converting to integers, 89 - 90
creating, 200 - 201
formatting
positional formatting, 214 - 215
sign formatting, 213 - 214
formatting for output, 209 - 215
format() function, 209 - 210
named placeholders, 210 - 211
positional placeholders, 210
joining, 205
manipulating with functions, 202 - 204
referencing, 201 - 202
regular expressions, 317 - 318
advanced features, 330 - 332
POSIX BRE engine, 318
POSIX ERE engine, 318
re module, 319 - 321
searching, 207 - 209
slicing, 202
splitting, 204 - 205
testing, 205 - 206

structure of for loops, 134 - 135


structured commands, 115


if statement, 115 - 117
multiple statements, grouping, 117 - 118
syntax, 115

subclasses, 294 - 295 , 308 - 314
adding to object module file, 298 - 300
creating, 297 - 298
polymorphism, 306
storing in its own object module file, 301 - 302


sudo command, 32


superclasses, 294


superuser, 32


switch bounce, 548

Free download pdf