Python lists and dictionaries


#1

https://www.codecademy.com/courses/learn-python/lessons/python-lists-and-dictionaries/exercises/list-slicing?action=resume_content_item

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


#2

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

list[start:stop]

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.