Feb-09-2017, 09:00 PM
(Feb-09-2017, 02:33 PM)ShailendraRaghunathPhadke Wrote:(Feb-09-2017, 02:23 PM)buran Wrote: Slicing:
some_iterable[start:stop:step]stop is not included, so [1:3] would start at 1 and up to, but not including 3
OK Buran I understand your explanation. Thanks for reply.
It can be easier to understand if you consider that the indices are really indices between the letters (or list elements)
W e l c o m e 0 1 2 3 4 5 6 7So, here,
[1:3]
brackets 'el'
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net