{"id":46,"date":"2016-02-22T17:04:14","date_gmt":"2016-02-22T17:04:14","guid":{"rendered":"http:\/\/greenteapress.com\/wp\/?page_id=46"},"modified":"2024-04-27T15:45:21","modified_gmt":"2024-04-27T15:45:21","slug":"think-python-2e","status":"publish","type":"page","link":"https:\/\/greenteapress.com\/wp\/think-python-2e\/","title":{"rendered":"Think Python, 2nd edition"},"content":{"rendered":"\n<p><strong>by Allen B. Downey<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/greenteapress.com\/wp\/think-python-3rd-edition\/\">The third edition is available now!<\/a><\/p>\n\n\n\n<p>Note for readers of the second edition: Many links to the domain thinkpython2.com are no longer active, but if you replace thinkpython2 with thinkpython, they should work.<\/p>\n\n\n\n<p><a href=\"http:\/\/amzn.to\/1WmXPCx\">You can buy the second edition at Amazon.com<\/a><\/p>\n\n\n\n<p>Download <a href=\"http:\/\/greenteapress.com\/thinkpython2\/thinkpython2.pdf\"><i>Think Python 2e<\/i> in PDF<\/a>.<\/p>\n\n\n\n<p>Read <a href=\"http:\/\/greenteapress.com\/thinkpython2\/html\/index.html\"><i>Think Python 2e<\/i> in HTML<\/a>.<\/p>\n\n\n\n<p>Example programs and solutions to some exercises are in <a href=\"https:\/\/github.com\/AllenDowney\/ThinkPython2\/tree\/master\/code\">this GitHub repository<\/a>. Instructions for working with this code are in the preface.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Translations<\/h4>\n\n\n\n<p>Here is a <a href=\"https:\/\/github.com\/espinoza\/ThinkPython2-spanish\">Spanish translation<\/a> by Jorge Espinoza.<\/p>\n\n\n\n<p>Here is a <a href=\"https:\/\/github.com\/wenbindu\/ThinkPython2-CN\">Chinese translation<\/a> (traditional and simplified) by Du Wenbin.<\/p>\n\n\n\n<p>Here is a <a href=\"https:\/\/bitbucket.org\/tanhuynhng\/thinking-python\/src\/master\/\">Vietnamese translation<\/a> by Tan H. Nguyen.<\/p>\n\n\n\n<p>Here is a <a href=\"https:\/\/sagark4.github.io\/think-python-2e-marathi\/\">Marathi translation<\/a> by Sagar Kale.<\/p>\n\n\n\n<p>Peter Hall compiled the glossaries into two documents: <a href=\"https:\/\/github.com\/AllenDowney\/ThinkPython2\/raw\/master\/Think%20Python%20Glossary%20by%20Chapter.pdf\">glossary by chapter<\/a> and <a href=\"https:\/\/github.com\/AllenDowney\/ThinkPython2\/raw\/master\/Think%20Python%20Glossary%20by%20Alphabetic%20order.pdf\">glossary in alphabetical order<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Description<\/h2>\n\n\n\n<p><a href=\"http:\/\/amzn.to\/1WmXPCx\"><img decoding=\"async\" src=\"http:\/\/greenteapress.com\/thinkpython2\/think_python2_medium.jpg\" alt=\"\" align=\"right\" border=\"0\" hspace=\"10\"><\/a><em>Think Python<\/em> is an introduction to Python programming for beginners. It starts with basic concepts of programming; it is carefully designed to define all terms when they are first used and to develop each new concept in a logical progression. Larger pieces, like recursion and object-oriented programming, are divided into a sequence of smaller steps and introduced over the course of several chapters.<\/p>\n\n\n\n<p><strong>What&#8217;s new in the second edition?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We&#8217;ve upgraded to Python 3: All examples in the book are now Python 3, and the supporting code has been updated to run in both Python 2 and 3.<\/li>\n\n\n\n<li>We&#8217;ve removed the roadblocks: Based on reader feedback, we know where people had problems, so we&#8217;ve fixed or removed the pain points.<\/li>\n\n\n\n<li>Python in the browser: For beginners, one of the challenges of getting started is installing Python. For readers who don&#8217;t want to install Python right away, we provide instructions for running Python in a browser using PythonAnywhere, a free online programming environment.<\/li>\n\n\n\n<li>More Python goodies: We&#8217;ve added a chapter to cover some powerful Python features that didn&#8217;t make it into the first edition, including list comprehensions and additional data structures.<\/li>\n<\/ul>\n\n\n\n<p><em>Think Python 2e<\/em> is a Free Book. It is available under the <a href=\"http:\/\/creativecommons.org\/licenses\/by-nc\/3.0\/\">Creative Commons Attribution-NonCommercial 3.0 Unported License<\/a>, which means that you are free to copy, distribute, and modify it, as long as you attribute the work and don&#8217;t use it for commercial purposes.<\/p>\n\n\n\n<p>If you have comments, <b>corrections<\/b> or suggestions, please send me email at feedback{at}thinkpython{dot}com.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Earlier Versions<\/h3>\n\n\n\n<p>The second edition uses Python 3. &nbsp;If you are using Python 2, you might want to use the first edition, <a href=\"http:\/\/greenteapress.com\/thinkpython\/index.html\">which is here<\/a>.<\/p>\n\n\n\n<p>A previous edition of this book was published by Cambridge University press with the title <a href=\"http:\/\/greenteapress.com\/thinkpython2\/pythonsd.html\"><em>Python for Software Design<\/em><\/a>. This edition is <a href=\"http:\/\/amzn.to\/I6bk1d\">available from Amazon.com<\/a>.<\/p>\n\n\n\n<p>The original Python version of the book was published by <a href=\"http:\/\/greenteapress.com\/\">Green Tea Press<\/a>&nbsp;with the title <a href=\"http:\/\/greenteapress.com\/thinkpython2\/thinkCSpy\/index.html\"><em>How to Think Like a Computer Scientist: Learning with Python<\/em><\/a>. This edition is available from from <a href=\"http:\/\/www.lulu.com\/content\/3126674\">Lulu.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>by Allen B. Downey The third edition is available now! Note for readers of the second edition: Many links to the domain thinkpython2.com are no longer active, but if you replace thinkpython2 with thinkpython, they should work. You can buy the second edition at Amazon.com Download Think Python 2e in PDF. Read Think Python 2e &hellip; <a href=\"https:\/\/greenteapress.com\/wp\/think-python-2e\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Think Python, 2nd edition<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-46","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/pages\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":10,"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/pages\/46\/revisions"}],"predecessor-version":[{"id":467,"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/pages\/46\/revisions\/467"}],"wp:attachment":[{"href":"https:\/\/greenteapress.com\/wp\/wp-json\/wp\/v2\/media?parent=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}