Quote:
also how do I do the rest of this
Right up to there, I was willing to help. Even eager.
But now? No.
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
And if you can't even check the length of a string on your own, then you need desperately to re-read your course notes so far and learn at least the basics before you get to this exercise. Try it yourself, you may find it is not as difficult as you think!
If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!