What to do with maxLen?

does we have to manually add maxLen= 10 because else it is showing error like this:

or we have to do this?

No, you should not do that.
Do not modify any of the cells except where it specifically tells you to.

but it was showing a error and i was unable to run it so I did as:

Do not modify that cell.

What was the error?