I was trying bubble sort through define function method but it keeps on showing attribute error. I am not able to understand the reason, so if anyone could explain this error it would be a great help.
l=[1,4,7,9,0]
def kono():
n=len(l)
for i in range (n):
for j in range(n-i-1):
if(l[j]>l[j+1]):
l[j],l[j+1]=l[j+1],l[j]
b=l.kono()
print(b)
l.kono()to mean?def kono(l)and the call tokono(l).