| A | B |
| Module | a python program that can be imported |
| GUI | windows, buttons, menu items, icons and dialog boxes with which a computer interacts |
| forking | taking code from a currently developed project to make a different version |
| methods | the functions associated with a class |
| \n | newline |
| Which stride number should you use to reverse the order of characters in a slice | -1 |
| Constraint | something that limits your project |
| proprietary software | software that hides its code |
| Informal development method | does NOT follow a predictable or planned course of action |
| shortcuts | make it easier and quicker to open a file |
| button | a clickable graphical object that makes something happen when the user clicks it |
| Docstrings must start on the first line after the start of a program or... | the first line after the start of a function definition |
| bug | an error in a program's code |
| iteration | each cycle of a loop |
| instances | copies of a class |
| "happy" + "birthday"= | "happybirthday" |
| x=2, y=x+3, x=4...what's the final value of y | 5 |
| an advantage of using variables is | it makes it less likely that an error will be introduced into the code |
| Code reuse is meant to... | save time |
| comments | explain what some code is doing |
| module | the turtle program is an example of this |
| if you want to save a program so you can run it later, create the program in ... | the text editor window |
| execute | another word for running a program |
| # | character used to start a comment |
| In a function name, what should you use between words instead of whitespaces? | underscore __ |
| Variables make it easier to ... | make changes in your code |
| Floating point number | 19.67 |
| Comments should be written in what type of language? | Clear & plain language |
| if x=2, y=x+3, x+4, then y= | 5 |
| the argument for the goto() command | x and y coordinates |
| origin point | (0,0) |
| (2, -18) in what direction from the origin point | to the right and down |
| What does a coordinate tell you? | where a point is along the X and Y axis |
| "happy" + "birthday"= | happybirthday |
| comments in Python are meant to.... | explain what code is doing |
| The X axis | an invisible horizontal line |
| the Y axis | an invisible vertical line |
| the word "fifteen" is what kind of data type? | a string |
| 45 is an example of what kind of data type? | an integer |
| concatenation | adding strings together to make a new string |
| character | smallest unit in a written language |
| In the code onkey(draw_9, "r"), what will happen when a lowercase "r" is typed on the keyboard? | The draw_9 function will be called. |
| A folder inside a folder | subdirectory |
| a code that runs when a specific event happens. | callback function |
| make it easier to open a file | shortcuts |
| backslash\ | character used to separate folder and file names in Windows |
| Docstrings | can be accessed through IDLE's interactive help system |
| common feature of GUIs | a pointing device |
| usability | how easy to use something is |
| keywords | programming terms that have specific meanings in Python |
| automatic target of onclick() function, unless otherwise directed | the unnamed turtle |
| is a clickable graphical object that makes something happen when the user clicks it, usually with the left mouse button. | button |
| makes the turtle follow the motion of the mouse pointer when the user clicks and drags the mouse | ondrag(goto) |
| event handler | Waits for an event and then do something in response to it |
| A docstring must start on the first line after the start of a program, or | The first line after the start of a function definition |
| prints the docstring for the range() function | print(range.__doc__) |
| Integrated Development Environment (IDE) | software program used to write code and develop programs |
| what shape would this make? circle(100, steps=4) | square |
| freezing | when a window stops responding |
| developer | another name for a computer programmer |
| Your cursor shows you... | where you are about to type |
| what command would rotate the turtle counterclockwise in a full circle? | left(360) |
| what command would rotate the turtle clockwise in a full circle? | right(360) |
| The command that moves the turtle forward 100 pixels | forward(100) |
| Radius | distance from center of circle to the outer line of the circle |
| When you use the color() command, what should you include around the color name in the argument? | "" quotation marks |
| The Python Shell has | a command prompt >>> |
| To save a program you should create it in | the text editor window |
| Python was created to be more ___________ than other programming languages | human readable |
| The turtle program is a/an ___________ that can be imported for use in Python code. | Module |
| Where do you put an argument for a command | inside the parentheses () |
| 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. |
| object | anything that can be used by Python to do something |
| 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 |
| Iterative and incremental development examples | Agile software development and extreme programming |