►
Run
rangeObject = range(2, 9) length = len(rangeObject) print(f'Length of this range is {length}.')
Output