Index

  • " " " (triple quote), 52
  • [ ] (brackets), 60
  • * (asterisk) in arbitrary arguments, 140–141
  • \n escape character, 53
  • A
  • addition (order of operations), 45
  • AI (artificial intelligence), 4
  • aliases, modules, 199–200
  • APIs (application programming interfaces), 4
  • append() method, 88–89, 111–112
  • arbitrary arguments, 140–141
  • arguments, 136–137; arbitrary, 140–141; default, 138–139; keyword, 141–142
  • arithmetic operators, 42–43; order of operations, 43–45
  • B
  • Boolean values, 85
  • brackets ([ ]), index, 60
  • break statements, loops, 100–101; while loop, 119–120
  • built-in functions, 142–143
  • C
  • calling functions, 134–135
  • camelCasing, 25
  • capitalize() method, 179
  • checkpoints, 5; answers, 213–217; birthday present list, 91–92; books with ratings, 167; dictionaries, 164, 172; equations, 46–49; functions, 137–138, 139–140; for loops for test scores, 103; module syntax, 199; modules, 189, 202; printing, 28–29; string methods, 56; superhero list, 84; variable updates, 30; while loops, 124
  • classmate introduction project, 30–37
  • clear() method, 90
  • code, testing, 32–33
  • code blocks, 5
  • Command Prompt window (Windows), 11
  • commands, 11
  • comparison operators, 70–71; logical operators, 71–72
  • concatenation, 57
  • conditionals, 69; comparison operators, 70–72; if statements, 72–73; if-elif-else statements, 75–77; if-else statements, 74
  • continue statement, 101–103
  • continue statement, while loops, 120–122
  • control flow, 69; comparison operators, 70–72; if statements, 72–73; if-elif-else statements, 75 ...

Get Bite-Size Python 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.