def JoeCalimar(l):
    masterList = []
for i in l:
    for j in l:
        masterList.append(1.0 * i / j)
pos = masterList.index(min(masterList))
a = pos / len(masterList)
b = pos % len(masterList)
return l[a], l[b]
Python: For each list element apply a function across the list