Get String Index Python Function Example