click below
click below
Normal Size Small Size show me how
Programming #2
From all lessons in "Basic Problem Solving"
| Term | Definition |
|---|---|
| Integrated Development Environments (IDE) | Helps create programs. It's a toolbox rather than a tool |
| Debugging | Verify the program logic and data match your expectation |
| Call stack | List of active methods |
| Function | keyword def. Named block of statements (with a common purpose) |
| Parameters | Inputted into the function |
| Definition | The collection of statements that execute when the function is called or invoked |
| Declaration | Also called signature. Introduces the function and instructs the compiler to consider the block a function |
| Git | Distributed version control system that allows for non-linear development |
| Git repository | Directory where git stores the source code and its history. Tracks all changes |
| for | for counter in range(numberOfTimes): |
| counter | Remembers number of times looped. Updated at end of each loop |
| range() | Defines sequence of numbers to loop through. Doesn't include last number |
| range(2, 17, 3) | start, end, increment |
| break | Exits looping code |
| continue | Stops current loop, continuing to next loop |
| for-else | Statements in else block executes if all iterations are complete. Will not execute if break is used in for loop |
| while-else | Statements in else block execute if while condition is false. Will not execute if break is used in while loop |