Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Who told you that it hasn't ?? Commented Jul 21, 2018 at 13:20
  • Well, no basic substring function such as python has. I thought this would be useful for beginners such as myself Commented Jul 21, 2018 at 13:22
  • 1
    If your range is 4 you should get Hell not Hello Commented Jul 21, 2018 at 13:23
  • 1
    Btw naming range the length is misleading Commented Jul 21, 2018 at 13:25
  • Have a look at the various answers to stackoverflow.com/q/39677330/1187415 (of which your question is a duplicate) or stackoverflow.com/q/24092884/1187415 for more efficient solutions. Commented Jul 21, 2018 at 13:27