Range

class Range(first, last)

Bases: tuple

Attributes Summary

first

Alias for field number 0

last

Alias for field number 1

Methods Summary

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes Documentation

first

Alias for field number 0

last

Alias for field number 1

Methods Documentation

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.