Skip to content

val [terminology]

Terminology

Usage

  • Use for a value extracted, stored, parsed, or associated with a node or key.
  • Prefer it over x when emphasizing that the variable holds a particular stored value.
  • Prefer it over value in compact function and class bodies.
  • Do not replace a more informative domain name such as price or color.
val = matrix[r][c]

if val == target:
    return True