trying to write a Python function: def compare_lengths(x, y, z)
which takes as arguments three arrays and checks their lengths and returns them as a triple in order of length.
For example, if the function takes [1,2,3], [10,20,30,40] and [65,32,7] as input, want it to return either ([1,2,3], [65,32,7], [10,20,30,40]) or ([65,32,7], [1,2,3], [10,20,30,40])
it can take it as either:
Array = [1,2,3],[10,20,30,40],[65,32,7]
or:
x = [1,2,3]
y = [10,20,30,40]
z = [65,32,7]
but it needs to be sorted as either:
([1,2,3], [65,32,7], [10,20,30,40])
or:
([65,32,7], [1,2,3], [10,20,30,40])
using bubble sort