diff options
author | Louie Dinh <LouieDinh@gmail.com> | 2013-08-05 17:57:37 -0700 |
---|---|---|
committer | Louie Dinh <LouieDinh@gmail.com> | 2013-08-05 17:57:37 -0700 |
commit | 6e8767903320d47b8608d42bd2ffb745e9211588 (patch) | |
tree | 3436dd705dcd58cbb24730f316e15484844f5645 | |
parent | 01f0e59980ceab7f16cd5571692e8913e5d9f5c2 (diff) | |
parent | 5617b2804895e096801c2c9bb5f1386d18095276 (diff) |
Merge pull request #164 from louiedinh/master
Fix a typo and add more references.
-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) + |