Get String Index Python Function Parameters