Commit b5807599 authored by RAJAT KAPOOR's avatar RAJAT KAPOOR

Task2

parent be1f98dd
#!/usr/bin/python
#listinput = [(1,4,5),(3,6,1),(0,8,2)]
def function2(listVariable,n):
p=list(map (lambda x:(x[n]),listVariable))
print(p)
listVariable.sort(key=lambda t: t[n])
return listVariable
#l=function2(listinput,1)
#print(l)
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