Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes
asked in CSC201 Spring 2021 by (1 point)

2 Answers

+4 votes

I think because length starts from one and indicies start from 0

answered by (1 point)
+2 votes

When you use ' - ' it starts from the back, so -1 is '!', -2 is 'e', -3 is 'd' etc

answered by (1 point)
...