Range Function In Python Parameters Vs Arguments In Javascript