Write a Python code that asks the user to enter an array or generate a random integer array of user- defined length (array elements are random numbers between 0 and 9

inclusive). Then the program checks whether the array is balanced. A balanced array is an array that can be split into two parts such that the sum of elements on both sides is equal. • Your code should handle out-of-range input values.