From c51d0ec1a7a5ce64b8e1b325f3e1c79aca65ccc0 Mon Sep 17 00:00:00 2001 From: Juraj Bubniak Date: Sat, 29 Jun 2013 08:22:19 +0200 Subject: python set literals should be separated by comma --- python.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python.html.markdown') 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} -- cgit v1.2.3