Array User Input In Javascript Indexof Function In Python