in the quiz section there is a question: “What character will be selected from the string
cool_fruit = "watermelon" using the code
cool_fruit[len(cool_fruit) - 2] ?”
I know the right answer but:
why couldn’t they write a simple cool_fruit[-2]? I mean is there any difference between this
cool_fruit[len(cool_fruit) - 2] and this cool_fruit[-2]?
Thank you in advance whoever replies to my newbie question