Is
text.startswith(\'a\')
better than
text[0]==\'a\'
?
Knowing text is not empty and we a
My ideas:
startswith can work with any length, can work with empty strings, I prefer this.
startswith
indexing can only work if the length is specified, cannot work with empty strings.