How do I check if a list is partially sorted? How to define a threshold for partially sorted lists?
I have hundreds of lists that look like that:
list_1 = [10,20,30,40,70,90,230,450] # sorted list example
list_2 = [10,20,40,30,70,230,90,450] # partially sorted list example
list_a = [20,450,90,30,...