We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d91d45 commit 38df4cbCopy full SHA for 38df4cb
6/6.py
@@ -0,0 +1,7 @@
1
+array = [('바나나', 2), ('사과', 5), ('당근', 3)]
2
+
3
+def setting(data):
4
+ return data[1]
5
6
+result = sorted(array, key=setting)
7
+print(result)
0 commit comments