Commit 2f8c3463 authored by SHRADDHEYA SHENDRE's avatar SHRADDHEYA SHENDRE

Adding task2.py (B2)

parent e41753ef
def function2(listVariable,n):
new_list = list(map(lambda x: x[n],listVariable))
print(new_list)
listVariable.sort(key=lambda x: x[n])
return listVariable;
\ 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