Re: print command don't work (subscripted) word[2:4]

2008-10-07 Thread Jerry Hill
On Tue, Oct 7, 2008 at 2:50 PM, <[EMAIL PROTECTED]> wrote: > Why is this not working ? > > bla = 'hondenriem' > print bla[0:4] # correct ! (= hond) > print bla[3:2] # nothing ! (= en) Why do you think the right answer is 'en'? bla[3:2] is asking for the slice starting at position 3, ending bef

Re: print command don't work (subscripted) word[2:4]

2008-10-07 Thread skip
gcmartijn> Why is this not working ? gcmartijn> bla = 'hondenriem' gcmartijn> print bla[0:4] # correct ! (= hond) gcmartijn> print bla[3:2] # nothing ! (= en) gcmartijn> print bla[6:3] # nothing ! (= riem) gcmartijn> Why don't bla[3:2] and bla[6:3] won't work ? Because

Re: print command don't work (subscripted) word[2:4]

2008-10-07 Thread Tim Chase
[EMAIL PROTECTED] wrote: Why is this not working ? bla = 'hondenriem' print bla[0:4] # correct ! (= hond) print bla[3:2] # nothing ! (= en) print bla[6:3] # nothing ! (= riem) Why don't bla[3:2] and bla[6:3] won't work ? I use this version: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [