Closed
Description
a = range(10)
d = a[10:11]
print(d)
Unlike the list type, the range type does not support the slice function. slice in the range type must be supported.
Expected result
range(10, 10)
Actual result
TypeError: "unsupported operand type(s) for index: 'slice'"
2019/09/11 23:10:28 TypeError: "unsupported operand type(s) for index: 'slice'"