Commit b5807599 authored by RAJAT KAPOOR's avatar RAJAT KAPOOR


parent be1f98dd
#listinput = [(1,4,5),(3,6,1),(0,8,2)]
def function2(listVariable,n):
p=list(map (lambda x:(x[n]),listVariable))
listVariable.sort(key=lambda t: t[n])
return listVariable
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment