How to extract a substring from a string using position and length

pos4th = 4 - 1     # 3
len2 = pos4th + 2  # 5

abc = 'abcdefghijk'
de = abc[pos4th:len2]

print abc, de, ENTER, pos4th, len2
exit()
4 Likes