diff options
author | greybird <greybird@pc.(none)> | 2013-08-06 20:24:22 +0400 |
---|---|---|
committer | greybird <greybird@pc.(none)> | 2013-08-06 20:24:22 +0400 |
commit | 5be718905dd233db33c54379aa04232546231da5 (patch) | |
tree | 3436dd705dcd58cbb24730f316e15484844f5645 | |
parent | 4789c27e0b1082d73ddad7173bfe93368121b423 (diff) | |
parent | 6e8767903320d47b8608d42bd2ffb745e9211588 (diff) |
Merge remote-tracking branch 'upstream/master'
-rw-r--r-- | python.html.markdown | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/python.html.markdown b/python.html.markdown index e7ee6fbd..298b7bb7 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -232,7 +232,7 @@ filled_dict.setdefault("five", 6) #filled_dict["five"] is still 5 # Sets store ... well sets empty_set = set() # Initialize a set with a bunch of values -some_set = set([1,2,2,3,4]) # filled_set is now set([1, 2, 3, 4]) +some_set = set([1,2,2,3,4]) # some_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} @@ -470,12 +470,19 @@ dir(math) ``` -## Further Reading +## Ready For More? -Still up for more? Try: +### Free Online * [Learn Python The Hard Way](http://learnpythonthehardway.org/book/) * [Dive Into Python](http://www.diveintopython.net/) * [The Official Docs](http://docs.python.org/2.6/) * [Hitchhiker's Guide to Python](http://docs.python-guide.org/en/latest/) * [Python Module of the Week](http://pymotw.com/2/) + +### Dead Tree + +* [Programming Python](http://www.amazon.com/gp/product/0596158106/ref=as_li_qf_sp_asin_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0596158106&linkCode=as2&tag=homebits04-20) +* [Dive Into Python](http://www.amazon.com/gp/product/1441413022/ref=as_li_tf_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1441413022&linkCode=as2&tag=homebits04-20) +* [Python Essential Reference](http://www.amazon.com/gp/product/0672329786/ref=as_li_tf_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0672329786&linkCode=as2&tag=homebits04-20) + |