Commit 8226e88d authored by SINGH SOURABH BHAGWAN's avatar SINGH SOURABH BHAGWAN

Task2 is done

parent 17dc7e7e
def function2(listVariable,n):
l = list(map(lambda elem : elem[n-1],listVariable))
print (l)
l.sort()
return l
li = [(22,3),(2634,4642),(235,32)]
print (function2(li,2))
\ No newline at end of file
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