Range Attributes

range.start

Stored initial bound, defaulting to zero for range(stop). It is the first value only when the range is nonempty; it remains available even when no value satisfies the bounds. Access without parentheses; the attribute is read-only.

Formal Syntax & Structure

python syntaxpython
value.start

Return Value

int

Stored integer bound or stride.

Working Example

Example Snippetpython
r = range(7)print(r.start)print(range(8, 2).start)
Python Reference