Computer Science Discoveries

123456789
Across
  1. 3. A reusable block of organized code that performs a specific task. Functions can accept arguments and return a value, promoting code modularity and reuse.
  2. 4. A single Python file (.py) containing definitions and statements. Modules can be imported into other Python programs to use their functions and variables.
  3. 5. Type: An attribute that describes a piece of data based on its values and the operations it can perform. Common types include int (integers), float (decimals), str (strings/text), and bool (True/False).
  4. 8. A control structure (for, while) that repeatedly executes a block of code as long as a given condition is true or for each item in a sequence.
  5. 9. A named storage location in the computer's memory used to hold data (like numbers or text) that can be changed as the program runs.
Down
  1. 1. In Python, everything is an object, which is an instance of a class. Objects have associated data attributes and methods defined by their class.
  2. 2. Statement: A statement (if, elif, else) that performs different actions depending on whether a specified condition is True or False.
  3. 5. An unordered collection of data stored as key-value pairs within curly braces ({}). Keys must be unique and are used to access their associated values.
  4. 6. An ordered collection of elements enclosed in parentheses (()). Tuples are immutable, meaning their contents cannot be changed once created.
  5. 7. An ordered collection of elements enclosed in square brackets ([]). Lists are mutable, meaning you can add, remove, or change elements after creation.