Game Preview

HS Python coding vocab

  •  English    35     Public
    keywords for coding
  •   Study   Slideshow
  • Defines a class in python, powerful in object-oriented programming
    group
    Group
    Class
    class
  •  15
  • Context manager, defines code to be executed within the context manager's scope.
    within
    WITHIN
    WITH
    with
  •  15
  • indicates a block intentionally left blank
    pass
    Pass
    skip
    Skip
  •  15
  • defines a function without a name and with only 1 statement
    delta
    lambda
    Lambda
    Delta
  •  15
  • valid only when used with "def"; exits the function and returns the results
    Return
    Back
    BACK
    return
  •  15
  • returns a "generator" from a function
    YEILD
    yeild
    yield
    Yield
  •  15
  • Used to include a module into your Python program
    bringin
    Bringin
    IMPORT
    import
  •  15
  • Used with import to bring in something from a specific module.
    and
    from
    next
    with
  •  15
  • Used with "import" and "from" to change the name of what is being imported
    as
    alias
    switch
    change
  •  15
  • code that might raise an exception
    except
    next
    try
    do
  •  15
  • Used with "try" to define what happens when specific exceptions are raised
    go
    except
    continue
    expand
  •  15
  • raises an exception
    lifts
    raises
    raise
    top
  •  15
  • specifies code that should be run no matter what happens in the "try", "except" or "else" blocks
    last
    finally
    lastly
    final
  •  15
  • results in a no-op if the expression is truthy or an "AssertionError" if the expression is falsy
    error
    assert
    express
    true
  •  15
  • defines an asynchronous function
    async
    sync
    asynch
    asynchronous
  •  15
  • defines the point in the function where control is given back to the event loop
    await
    stop
    back
    event
  •  15