n = [[3,1,9,-7],[11,8,5,24], [6,85,2,-5]]
n_sorted = sorted(n, key=lambda x: x[0])
print(n_sorted)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = [[3,1,9,-7],[11,8,5,24], [6,85,2,-5]]
n_sorted = sorted(n, key=lambda x: x[0])
print(n_sorted)