Why is this simple Python program not giving the correct output?
Why is this simple Python program not giving the correct output? Question: The challenge is given below: You will be given an array of numbers. You have to sort the odd numbers in ascending order while leaving the even numbers at their original positions. [7, 1] => [1, 7] [5, 8, 6, 3, 4] => …