Python User Input Array Javascript Function Definition In C