Javascript String Array Functions Python Code Editor