Skip to content

Commit a09aa3e

Browse files
committed
added missing parens to name.sort
1 parent 056ac49 commit a09aa3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/python/python-language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ For example, the `key` argument can be a function to run on each item of the `li
886886

887887
```python
888888
names = ["Danielj", "alecg", "Dimas"]
889-
names.sort
889+
names.sort()
890890

891891
# Notice how these aren't sorted correctly? Uppercase letters are "smaller"
892892
# than lowercase letters in the sorting algorithm that `sort()` uses!

0 commit comments

Comments
 (0)