My issue
My code
# Update the '_' in the code below to solve the problem
t = int(input())
for i in range(t):
A = list(map(int,input().split()))
N = len(A)
# We first find the smallest element, and which index it is in.
minElement = A[0]
minElementIndex = 0
i = 1
while i < _:
if A[i] < __________:
# If we find an element smaller than the previous smallest, we update
minElement = A[i]
minElementIndex = i
i = i + 1
#We are starting the operation from index of the smallest element
i = minElementIndex
while i > _:
#Swap the A[i] and A[i-1]
A[i],A[i-1] = _____, ____
i = i - 1
print(*A)
Learning course: Python for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone