remove couple of errors from a small Python program

Job ID: 34833984

Budget: $30 – $250 CAD

I have issue with a function that detect the integer value and call the function accordingly.
Save an array in a function to be called for function mentioned above.
Related categories: Python Algorithm