"Daniel" wrote
*1)s = 'colorless'
2)ss = s[:4] + 'u' + s[4:]
*I do not understand something. So on the second line, the slicing
lasts from the start of the s string to the forth character.
Correct, slices include the first index but not the last.
does the counting start? 0 or 1?
It start
Hey email in plain text in the future, HTML is not kind to mobile screens and
in general you should plaintext reply to tech lists.
All list indices start from 0. But you don't get the last value. So slice[1:5]
would skip the first char and then include the next 3. It's the same as range.
Range(