Commit dc18d062 authored by nishanth's avatar nishanth

nishanth

parent 4a566433
Pipeline #10765 passed with stage
in 14 seconds
pyString = 'Python'
# contains indices (0, 1, 2)
# i.e. P, y and t
sObject = slice(3)
print(pyString[sObject])
# contains indices (1, 3)
# i.e. y and h
sObject = slice(1, 5, 2)
print(pyString[sObject])
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment