Study

HS Python coding vocab

  •   0%
  •  0     0     0

  • Boolan statement, opposite of true
    fulse
    false
    not
    False
  • Gives the opposite Boolean value of a variable
    not
    Other
    Not
    other
  • used to define a function or method of class
    def
    DEF
    define
    Define
  • Boolean statement: opposite of false.
    True
    true
    tru
    yes
  • Context manager, defines code to be executed within the context manager's scope.
    WITH
    within
    with
    WITHIN
  • Object identity check: determines if 2 objects are exactly the same.
    IS
    is
    si
    Is
  • code that might raise an exception
    do
    next
    except
    try
  • Most common loop, often used with "in"
    FOR
    for
    Loop
    loop
  • Used with import to bring in something from a specific module.
    with
    and
    from
    next
  • defines a function without a name and with only 1 statement
    lambda
    Delta
    delta
    Lambda
  • valid only when used with "def"; exits the function and returns the results
    BACK
    return
    Return
    Back
  • raises an exception
    top
    raise
    raises
    lifts
  • specifies code that should be run no matter what happens in the "try", "except" or "else" blocks
    lastly
    last
    final
    finally
  • defines the point in the function where control is given back to the event loop
    event
    await
    stop
    back
  • Stops the current loop and moves to next step
    Next
    CONTINUE
    continue
    NEXT
  • works like "if" statement but can only be used after an "if" or another of the same statement
    else if
    Elif
    ElseIf
    elif
  • Denotes blocks of code that should be run when "if" and "elif" statements are falsy
    Elsethen
    ELSETHEN
    else
    Else
  • Used to determine if both left and righ operands are truthy or falsy
    and
    AND
    BOTH
    both
  • Exits a loop early
    BREAK
    stop
    break
    Stop
  • containmennt check, is a element included in the data
    with
    included
    out
    in
  • defines an asynchronous function
    asynch
    async
    sync
    asynchronous
  • Defines a class in python, powerful in object-oriented programming
    Group
    Class
    group
    class
  • results in a no-op if the expression is truthy or an "AssertionError" if the expression is falsy
    error
    assert
    true
    express
  • indicates a block intentionally left blank
    Skip
    Pass
    skip
    pass
  • returns a "generator" from a function
    YEILD
    Yield
    yeild
    yield
  • remove indexes from a list or dictionary, or unsets a variable
    remove
    del
    rid
    delete
  • An empty string of code
    None
    blanck
    none
    blank
  • Used with "try" to define what happens when specific exceptions are raised
    go
    expand
    except
    continue
  • used to modify a variable that isn't defined in a function but in a global scope
    define
    modify
    scope
    global
  • Used with "import" and "from" to change the name of what is being imported
    switch
    as
    alias
    change
  • Connects 2 expressions and evaluates for true or false
    ore
    Or
    OR
    or
  • used to modify a variable that isn't defined in a function but from a parent scope
    parent
    nonlocal
    global
    local
  • Loop word, if conditions that follow are truthy, using this keyword will keep its statement running over and avoer
    when
    while
    While
    When
  • Used to include a module into your Python program
    Bringin
    bringin
    import
    IMPORT
  • Starts a conditional statement if the statement is true.
    IF
    then
    Then
    if