Slice In String In Python Function