I found a mistake

was learning course and found a mistake in it - please fix it

There must be 10 instead of 11

No, the length of "Hello world" is 11. Try the code and see

But why is it said that len function is zero based?

No. Indexing is zero based. The length is literally how many characters are in the string.

Ahhh, now I got it, it’s just the sum of them all, sorry, my mistake

It’s the count of all of them. You usually cannot ‘sum’ letters together.

1 Like

Sorry I used the wrong word, I’am a non-native so I still learning and making mistakes.

Thank u very much for correcting me I really appreciate it

1 Like

there is also an English course if you want to improve your English