please im new to python or any other programming language. please i want to
understand how slicing works

    [start,stop,step]

>>> 'abc'[0:3]
'abc'

>>>'abc'[0:-1]
'ab'

why does 'abc'[2:1]  or 'abc'[2:1] print ' ' instead of 'c'???
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to