We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1720ae commit f763777Copy full SHA for f763777
060-python-basics-7.md
@@ -8,4 +8,16 @@ Given an list of integers stored in `args[0]` and an integer k stored in `args[1
8
9
## Hint
10
11
-I wonder if there's a built in sort function?
+I wonder if there's a built in sort function?
12
+
13
+## Solution
14
+Python has a handy built in sort function! And, the indexes of strings can be referred to like the indexes in arrays or lists.
15
16
+```python
17
+a = args[0]
18
+a.sort(reverse = True)
19
+print a[args[1]]
20
+```
21
22
+## Flag
23
+`arrays_aren't_hard_because_python_rocks`
0 commit comments