I am making a class for sorting algorithms . But there seems to be some error which is giving the value of my sorted linked list as None. I cannot identify the missing piece of the code. Please help.
#Bubble sort algorithm
class Sort:
def Bubble(self,llister):
for i in range(len(llister)-1,0,-1):
for j in range(i):
if llister[j]>llister[j+1]:
llister[j],llister[j+1]= llister[j+1],llister[j]
if __name__=='__main__':
obj = Sort()
llist = [2,5,3,15,10,13,1]
print("The list before bubble sort : " ,llist)
ans = obj.Bubble(llist)
print("The list after bubble sort :" ,ans)