click below
click below
Normal Size Small Size show me how
CSP - Chapter 8
Term | Definition |
---|---|
Body of a Loop | a statement or set of statements to be repeated in a loop |
Counter | variable that is used to keep track of how many times something occurs in a program. |
Increment | increase the value of a variable by 1. |
Infinite Loop | loop is one that never ends |
Logical Expression | evaluates to true or false |
def | keyword is used to define a procedure or function in Python |
for | a programming statement that tells the computer to repeat a statement or a set of statements |
will print the value of the items passed to it | |
range | returns a list of consecutive values |
while | programming statement that tells the computer to repeat a statement or a set of statements based on a logical expression |