Index
Symbols
\ (backslash) 400
: (colon)
file paths 401
indented statements and 82, 105, 183
key/value pairs 364
slice syntax and 272–273
, (comma) 255, 364, 579
{} (curly brackets) 445, 580
. (dot notation)
attributes and 321
classes and modules 318
docstrings 300–302
examples of 77, 294, 308, 529
methods and 321
variables and 321
__ (double underscore) 51
== (equality operator) 81–82, 93
= (equal sign)
assignment operator 38, 82
keywords arguments 212
** (exponentiation operator) 47–48
/ (forward slash)
as division operator 47–48
as file path separator 400–401
> (greater than operator) 80, 93
>= (greater than or equal to operator) 81
# (hash character) 24, 99
< (less than operator) 93
% (modulus operator) 47–49
* (multiplication operator) 45, 47–48
- (negation operator) 47–48
!= (not equal operator) 81, 101–102
() (parentheses)
Boolean expressions and 102
in functions 60, 183
grouping operations 45
operator precedence and 48
subclassing 536
+ (plus sign)
addition operator 47–48, 158
concatenation and 25–26
>>>> prompt 40
“” (quotation marks)
declaring lists 25–26
strings and 42, 88, 250–251
[] (square brackets) 24–25
- (subtraction operator) 47–48
@ syntax 583
_ (underscore) 51
A
ABC programming language 15
absolute paths 401
abstracting code
about , 179–182, xiv–xvii
avatar example 195–199
object-oriented programming. See OOP
organizing modules for reuse 292–293, 299–304
turning into functions 183–190, 525
Web APIs and. See Web APIs
access tokens (Web API) 440
addition ...
Get Head First Learn to Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.