Js String Split Array Method Python