I'm confused about the index in python. This is my problem:
number = "1234567"
print(number[-3:1:-3])
Output: 5
Why did the output is only 5 and not 52? When the starting position is in the number 5 and the end position is in the number 1(Am I right?). From the right(SINCE IT IS NEGATIVE SO REVERSE) i count from 5 then skipped 2 spaces then the number 2 should also be included.