summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-06-29 07:37:43 -0700
committerAdam Bard <github@adambard.com>2013-06-29 07:37:43 -0700
commit91283b4d8d487f0e6e048dc2e6962390bc3ee670 (patch)
tree331a8384b0309ca7f380a4f2453933aca2776908
parente1cf0fb958769e1122aa3b071bc042d4706101f4 (diff)
parentc51d0ec1a7a5ce64b8e1b325f3e1c79aca65ccc0 (diff)
Merge pull request #36 from jbub/fixsets
python set literals should be separated by comma
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 463556d9..2b67ab83 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -228,7 +228,7 @@ empty_set = set()
some_set = set([1,2,2,3,4]) # filled_set is now set([1, 2, 3, 4])
# Since Python 2.7, {} can be used to declare a set
-filled_set = {1 2 2 3 4} # => {1 2 3 4}
+filled_set = {1, 2, 2, 3, 4} # => {1 2 3 4}
# Add more items to a set
filled_set.add(5) # filled_set is now {1, 2, 3, 4, 5}