Skip to content

Commit f763777

Browse files
committed
Update 060-python-basics-7.md
1 parent f1720ae commit f763777

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Diff for: 060-python-basics-7.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,16 @@ Given an list of integers stored in `args[0]` and an integer k stored in `args[1
88

99
## Hint
1010

11-
I wonder if there's a built in sort function?
11+
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

Comments
 (0)