I'm super confused about how start and end work. I supposed this function starts to count at startth element then ends at endth element after startth element. I mean, for example, if I define start and end as 1 and 2, the element should be looked at 3. I was wrong:
a = "orange"
a.endswith("g", 0, 5)
returns True;
a = "orange"
a.endswith("g", 1, 5)
also returns True. Any explanation is appreciate!