Commit fb3aa068 authored by PUJA RANI's avatar PUJA RANI

task2.py

parent f67b1c7e
def function2(listVariable, n):
print(list(map(lambda tuple: tuple[n],listVariable)))
return (sorted(listVariable, key=lambda tuple: tuple[n]))
#function2([(1,10),(3,4),(2,8)],0);
\ 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