4.11: Glossary

Think Python 2ed. · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC 3.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    4.11: Glossary
    method:
    A function that is associated with an object and called using dot notation.
    loop:
    A part of a program that can run repeatedly.
    encapsulation:
    The process of transforming a sequence of statements into a function definition.
    generalization:
    The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter).
    keyword argument:
    An argument that includes the name of the parameter as a “keyword”.
    interface:
    A description of how to use a function, including the name and descriptions of the arguments and return value.
    refactoring:
    The process of modifying a working program to improve function interfaces and other qualities of the code.
    development plan:
    A process for writing programs.
    docstring:
    A string that appears at the top of a function definition to document the function’s interface.
    precondition:
    A requirement that should be satisfied by the caller before a function starts.
    postcondition:
    A requirement that should be satisfied by the function before it ends.

    This page titled 4.11: Glossary was last modified on Sat, 02 Apr 2022 22:01:37 GMT and is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Allen B. Downey (Green Tea Press) via source content that was edited to the style and standards of the LibreTexts platform.