Python lists and dictionaries


In the example , why the result is “b” and “c” instead of “b” and “d” if we are have to count from 0?
I think there is a line explaining that but i am not able to understand much from it


list (and string) slicing has the following general syntax:


you get all the values equal to or greater then (>=) the start value and lesser then (<) the stop value, so:

"hello world"[0:5]

would give hello. You don’t get two values with slicing, you get the whole slice.