A | B |
Control Flow | order in which lines of a program are run |
Loop | controls the flow of a program by repeating lines of code, instead of letting the program run straight to the end. |
Iteration | repetition--one cycle of a loop |
for loop | a loop that iterates through a block of code a specific number of times or until something specific happens in the program |
range() | used to set the number of times a for loop will repeat, or iterate |
speed() | controls the speed at which the turtle moves. |
speed(1) | slowest |
Speed(0) | is as fast as possible. |
Angle | measurement of the degrees of distance between 2 lines where the lines intersect |
object | anything that can be used by Python to do something |
class | an object that can be used to make copies of itself |
instance | Each copy of a class |
bug | an error in a program's code |
Debugging | fixing errors in a computer program. |
Syntax | set of rules for how a programming language needs to be written |
Conceptual bugs | he code does something different from what the programmer wants |
Input bug | when the user inputs something the programmer wasn't expecting |
Logic Bug | created by control flow techniques such as loops that control the order in which the program's code is run or if a loop cycles one too many times. |
Resource Bug | can be created when a variable is used without ever having been given a value |