Skip to content

Commit 7eeccb8

Browse files
authored
Add example for duplicate-key message documentation (#6092)
1 parent 6041098 commit 7eeccb8

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test_score = {"Mathematics": 85, "Biology": 90, "Mathematics": 75} # [duplicate-key]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test_score = {"Mathematics": 85, "Biology": 90, "History": 75}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
`Python Dictionaries <https://docs.python.org/3/tutorial/datastructures.html#dictionaries>`_
2+
`Mapping Types — dict <https://docs.python.org/3/library/stdtypes.html#typesmapping>`_

0 commit comments

Comments
 (0)