• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/23

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

23 Cards in this Set

  • Front
  • Back
Active Namespace
Collection of all global variables and functions defined in the primary module
Assert Statement
assert <boolean-expression>, <string-expression>
Crashes if boolean is not true
Assignment Statement
Assigns a value to a variable
Creates a new variable if the assigned doesn't exist
Attribute
Variables stored inside and object
Call Frame
Formal representation of a function. Contains the name of the function as well as parameters and local variables
Call stack
All call frames of the currently executing function calls. Most recently called are on the bottom of the stack. Finished function calls are removed from the stack
Class
Any type not built into python
Conditional statment
Uses if, elif, else
Constructor
A function that creates a mutable object
Expression
Code that produces a value

e.g. : 1, 'Hello'
Function
Parameterized sequence of statements whose execution performs some task.

Should be followed by a docstring
Fruitful Function
A function that returns a value
Function call
Invocation of a function with arguments
Global Space
Area of memory that stores the active namespace. Values in global space remain until python is closed
Heap Space
Area of memory that stores mutable objects. Cannot be directly accessed. Objects remain until erased or closed
Method
Functions stored inside of an object

e.g. : find(s1) is a String method
Namespace
Collection of all global variables and functions inside of a module.

e.g. : math.pi and math.cos(0) are part of math's name space
Object
A value whose type is a class
Procedure
Function that does not return a value
Scope
The set of places in which a variable can be referenced

i.e. a global variable can be referenced in a function, but a local function variable cannot be referenced globally
Try-Except
Executes everything under try. If error, except statement runs
Variable
A named box that can contain a value
Parameter
A variable in the parentheses of a function header