My issue
I don’t understand shit, fuck you shreelekhap
My code
n = int(input())
inp = input()
l1 = [int(ele) for ele in inp.split()]
count = 0
for i in range(len(l1)-1):
for j in range(i+1,len(l1)):
if l1[i]>l1[j]:
l1[i],l1[j]=l1[j],l1[i]
count+=1
print(count, end=" ")
for i in l1:
print(i,end=' ')
Problem Link: Play with 2D Array Practice Coding Problem - CodeChef