Could someone help me to figure out why the start index 7 and ending index 26 is True? Dont we count here from 0 ,then we wouldn`t get ‘7’ and ‘26’ indexes. A bit confused(
# start parameter: 7
# "programming is easy to learn." string is searched
result = text.endswith('learn.', 7)
print(result)
# Both start and end is provided
# start: 7, end: 26
# "programming is easy" string is searched
result = text.endswith('is', 7, 26)
# Returns False
print(result)
result = text.endswith('easy', 7, 26)
# returns True
print(result) <p>```