click below
click below
Normal Size Small Size show me how
CS Unit 8
| Question | Answer |
|---|---|
| While Loop | A control flow statement that executes code repeatedly as long as a condition is true. |
| Iteration | Each execution cycle of a loop. |
| Initialize | Setting the first value of a variable. |
| Counter | A variable used to count the number of loop iterations. |
| Indexing | Accessing elements in a list using their position. |
| Zero-indexed | The first element of a list is at index 0. |
| Minimum Value | The smallest value in a list. |
| Built-in Function | A pre-defined function in Python (e.g., min, max). |
| Data Structure | A way of organizing and storing data (e.g., lists). |
| For loop | Executes code a specific number of times. |
| Range function | Generates a sequence of numbers based on start, stop, and step arguments. |
| Increment | The amount by which a value is increased. |
| List | A data structure that stores multiple items in a single variable, defined using brackets [ ]. |
| Ordered | Elements in a list maintain their specific sequence. |
| Length Function | A built-in function that returns the number of items in a list. |
| Index | The position of an element in a list, starting from 0. |
| List Slicing | Extracting a subset of elements from a list or string using indices. |
| Append | A method to add an element to the end of a list. |
| Dotting it off | Informal term for adding methods to objects using dot notation. |
| Pop | A method to remove and return the last item from a list. |
| Insert | A method to add an element at a specified position in a list. |
| Minimum Value | The smallest value in a list. |
| Built-in Function | A pre-defined function in Python (e.g., min, max). |