Help me in understanding this Assignment operators in this case

l = len(text) - 1 what this do? please help me understand this part. if you explain what this do exactly. is it reverse the text using -1 or not?

Sets a variable l equal to the length of text minus one