CINXE.COM
PY4E - Python for Everybody
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PY4E - Python for Everybody</title> <script> var _TSUGI = { ajax_session: false, heartbeat: 1500000, heartbeat_url: "https://www.py4e.com/tsugi/util/heartbeat", rest_path: {"parent":"","base_url":"https:\/\/www.py4e.com","controller":"book","extra":"","action":false,"parameters":[],"current":"\/book","full":"\/book"}, spinnerUrl: "https://static.tsugi.org/img/spinner.gif", staticroot: "https://static.tsugi.org", apphome: "https://www.py4e.com", wwwroot: "https://www.py4e.com/tsugi", websocket_url: false, websocket_token: false, react_token: "udcou46e8kk26agqcbkp37huik", window_close_message: "Application complete - You can close this tab.", session_expire_message: "Your session has expired" } </script> <!-- Tiny bit of JS --> <script src="https://static.tsugi.org/js/tsugiscripts_head.js"></script> <!-- Le styles --> <link href="https://static.tsugi.org/bootstrap-3.4.1/css/bootstrap.min.css" rel="stylesheet"> <link href="https://static.tsugi.org/js/jquery-ui-1.11.4/jquery-ui.min.css" rel="stylesheet"> <link href="https://static.tsugi.org/fontawesome-free-5.8.2-web/css/all.css" rel="stylesheet"> <link href="https://static.tsugi.org/fontawesome-free-5.8.2-web/css/v4-shims.css" rel="stylesheet"> <style>:root {--primary:#0D47A1; --primary-menu:#0D47A1; --primary-border:#0d4295; --primary-darker:#0c4091; --primary-darkest:#0b3b85; --background-color:#FFFFFF; --background-focus:#F5F5F5; --background-accent:#0D47A1; --secondary:#EEEEEE; --secondary-menu:#EEEEEE; --text:#111111; --text-light:#5E5E5E; --font-family:sans-serif; --font-size:14px; }</style> <link href="https://static.tsugi.org/css/tsugi2.css" rel="stylesheet"> <style> </style> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://www.py4e.com/tsugi/vendor/tsugi/lib/static/js/html5shiv/html5shiv.js"></script> <script src="https://www.py4e.com/tsugi/vendor/tsugi/lib/static/js/respond/respond.min.js"></script> <![endif]--> <script type="text/javascript">CSRF_TOKEN = "TODORemoveThis";</script> <style> body { font-family: var(--font-family); font-size: 1.2rem; line-height: 1.93rem; color: var(--text); background-color: var(--background-color); } </style> </head> <body prefix="oer: http://oerschema.org"> <div id="body_container"> <script> if (window!=window.top) { document.getElementById("body_container").className = "container-fluid"; } else { document.getElementById("body_container").className = "container"; } </script> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" id="tsugi_main_nav_bar" style="display:none"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="https://www.py4e.com">PY4E</a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav navbar-main"> <li><a href="https://www.py4e.com/lessons" >Lessons</a></li> <li><a href="https://www.py4e.com/discussions" >Discussions</a></li> <li><a href="https://www.py4e.com/materials" >OER</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="https://online.dr-chuck.com" target="_blank" >Instructor</a></li> <li><a href="https://www.py4e.com/book" >Book</a></li> <li><a href="https://www.py4e.com/login" >Login</a></li> </ul> </div> <!--/.nav-collapse --> </div> <!--container --> </nav> <script> if ( ! inIframe() ) { document.getElementById('tsugi_main_nav_bar').style.display = 'block'; document.getElementsByTagName('body')[0].style.paddingTop = '5.93rem'; } else { document.getElementsByTagName('body')[0].style.paddingTop = '1.0rem'; } </script> <div id="flashmessages"></div><div style="float: right; margin: 5px;"/><iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ss&ref=as_ss_li_til&ad_type=product_link&tracking_id=drchu02-20&marketplace=amazon®ion=US&placement=1530051126&asins=1530051126&linkId=2ea6c883c6cf11f29568856139bad34b&show_border=true&link_opens_in_new_window=true"></iframe></div> <h2>Python for Everybody</h2> <p> The goal of this book is to provide an Informatics-oriented introduction to programming. The primary difference between a computer science approach and the Informatics approach taken in this book is a greater focus on using Python to solve data analysis problems common in the world of Informatics. </p> <p> The sample code and data files for the book is here: <a href="https://www.py4e.com/code3/" target="_blank">Code Samples</a>. </p> <p><b><a href="courses">Other courses / web sites using this book</a></b> </p> <p> Book translations: </p> <ul> <li> English - <a href="https://amzn.to/29w0lsX" target="_blank">Python for Everbody: Exploring Data in Python3</a> <ul class="menu vertical nested is-active"> <li class="menu-text">Printed book on <a href="https://www.amazon.in/dp/9352136276" target="_blank">Amazon India</a> (low-cost shipping within India thanks to <a href="http://www.shroffpublishers.com/books/9789352136278/" target="_blank">Shroff Publishing</a>) </li> <li class="menu-text"><a href="http://amzn.to/29LrtC0" target="_blank">Kindle edition</a> of the book</li> <li class="menu-text">Free: <a href="http://do1.dr-chuck.com/pythonlearn/EN_us/pythonlearn.pdf" target="_blank">PDF</a>, <a href="html3">HTML</a>, <a href="http://do1.dr-chuck.com/pythonlearn/EN_us/pythonlearn.epub" target="_blank">EPUB</a></li> <li class="menu-text"><a href="https://eng.libretexts.org/Textbook_Maps/Computer_Science/Map%3A_Python_for_Everybody_(Severance)" target="_blank">HTML with examples in Jupyter Notebooks from LibreTexts.org</a></li> <!-- <li class="menu-text"><a href="https://github.com/csev/py4e/raw/master/book3/zips/pfe.zip" target="_blank">Download HTML in a ZIP (~6MB)</a></li> --> <!-- <li class="menu-text"><a href="trinket3" target="_blank">Interactive HTML from Trinket.io</a></li> --> <li class="menu-text"><a href="https://books.trinket.io/pfe/index.html" target="_blank">Interactive HTML from Trinket.io</a></li> </ul> </li> <li> Spanish - <a href="https://amzn.to/3axKzHv" target="_blank">Python para todos: Explorando la información con Python 3</a> <ul> <li> Translated book, autograders, resources, and web site at <a href="https://es.py4e.com/book">https://es.py4e.com</a> </li> <li> <a href="https://github.com/csev-es" target="_blank">Github repo</a> - Contributors: <a href="https://github.com/don-charlie-pc" target="_blank">Juan Carlos Perez Castellanos</a>, <a href="https://github.com/jdougnac" target="_blank">Juan Dougnac</a>, <a href="https://github.com/danielmerino" target="_blank">Daniel Merino Echeverría</a>, Jaime Bermeo Ramírez and <a href="https://github.com/ftardio" target="_new">Fernando Tardío</a>. </li> </ul> </li> <li> Italian <a href="https://amzn.to/2qGksK6" target="_blank">Python per tutti: Esplorare dati con Python3</a> <ul class="menu vertical nested is-active"> <li> Free <a href="http://do1.dr-chuck.com/pythonlearn/IT_it/pythonlearn.pdf" target="_blank">PDF</a>, <a href="http://do1.dr-chuck.com/pythonlearn/IT_it/pythonlearn.epub" target="_blank">EPUB</a> </li> <li> <a href="https://github.com/vittore/py4e/" target="_blank">Book source on github</a>, (Thanks to <a href="https://www.linkedin.com/in/alessandrorossetti/" target="_blank">Alessandro Rossetti</a> and <a href="https://www.linkedin.com/in/vittorezen/" target="_blank">Vittore Zen</a>) </li> </ul> </li> <li> Portuguese - <a href="https://amzn.to/2S6GpA6" target="_blank">Python Para Todos: Explorando Dados com Python 3</a> <ul class="menu vertical nested is-active"> <li class="menu-text">Free: <a href="http://do1.dr-chuck.com/pythonlearn/PT_br/pythonlearn.pdf" target="_blank">PDF</a>, <a href="http://do1.dr-chuck.com/pythonlearn/PT_br/pythonlearn.epub" target="_blank">EPUB</a> </li> <li> <a href="https://github.com/ras-ufcg/py4e" target="_blank">Book source on github</a> and <a href="https://github.com/ras-ufcg/py4e/blob/master/RAS_Team_Members.txt" target="_blank">translation team</a> (Thanks to <a href="https://twitter.com/yuriloia" target="_blank">Yuri Loia de Medeiros</a>).</li> </ul> </li> <li> Polish - <a href="https://amzn.to/38M2zjt" target="_blank">Python dla wszystkich: Odkrywanie danych z Python 3</a> (<a href="https://www.amazon.pl/gp/product/8396017603" target="_blank">from Amazon.pl</a> and <a href="https://www.amazon.de/gp/product/8396017603" target="_blank">from Amazon.de</a>) <ul> <li> <a href="https://py4e.pl/" target="blank">Polish verson of web site - py4e.pl</a> </li> <li class="menu-text"> <a href="https://py4e.pl/html3">HTML</a>, <a href="https://py4e.pl/translations/PL/py4e-pl-a4-latest.pdf" target="_blank">PDF (format A4)</a>, <a href="https://py4e.pl/translations/PL/py4e-pl-print-latest.pdf" target="_blank">PDF (format for print)</a>, <a href="https://py4e.pl/translations/PL/py4e-pl-latest.epub" target="_blank">EPUB</a>, <a href="https://py4e.pl/translations/PL/py4e-pl-latest.mobi" target="_blank">MOBI</a> </li> <li class="menu-text"><a href="https://github.com/andre-wojtowicz/py4e-pl" target="_blank">Github Repository</a></li> <li>Contributors: <a href="https://github.com/andre-wojtowicz" target="_blank">Andrzej Wójtowicz</a> (Adam Mickiewicz University in Poznań, Poland)</li> </li> </ul> </li> <li> Greek <ul> <li> <a href="https://gr.py4e.com/">Greek version of the web site - gr.py4e.com</a> </li> <li> <a href="https://disigma.gr/products/python-gia-olous?variant=47526224527708" target="_blank">Printed Book</a> </li> <li> Free PDF (in progress): <a https://www.py4e.com/translations/GR/gr/2023-4-24-Greek.pdf " target="_blank">PDF</a> </li> <li> <a href="https://github.com/csev-gr/py4e" target="_blank">Github repository</a> </li> <li> Thanks to: <a href="https://twitter.com/KonstantiaQ" target="_blank">Konstantia Kiourtidou</a> </li> </ul> </li> <li> German <ul> <li> Free: <a href="http://do1.dr-chuck.com/pythonlearn/DE_de/pythonlearn.pdf" target="_blank">PDF</a>, <a href="http://do1.dr-chuck.com/pythonlearn/DE_de/pythonlearn.epub" target="_blank">EPUB</a> </li> </ul> </li> <li> Arabic <ul> <li> Free: <a href="translations/AR/ar/book_ar_2023_01_01.pdf" target="_blank">PDF Book</a> </li> <li> Translation by: <a href="https://electronics-go.com/team/" target="_blank">Electronics Go</a> | <a href="translations/AR/ar/contributors_23_01_01.html" target="_blank">Team members</a> </li> </ul> </li> <li> Russian <ul> <!-- <li><a href="https://dmkpress.com" target="_blank">DMK Press</a> is working on a commercial translation of the book and will provide a free PDF for this site when it is completed.</li> --> <li><a href="lectures3/ru/index.htm" target="_blank">Russian versions of the slides</a> from <a href="https://www.linkedin.com/in/violetta-fomkina-9451372/" target="_blank">Violetta Fomkina</a>. </li> </ul> </li> <li> Korean (commercial translation) <a href="http://www.yes24.com/Product/Goods/77401048?Acode=101" target="_blank">데이터를 다루며 배우는 파이썬</a> </li> <li> Chinese - In progress <ul class="menu vertical nested is-active"> <li class="menu-text">Free: <a href="http://do1.dr-chuck.com/pythonlearn/ZH_cn/pythonlearn.pdf" target="_blank">PDF</a>, <a href="http://do1.dr-chuck.com/pythonlearn/ZH_cn/pythonlearn.epub" target="_blank">EPUB</a> </li> <li> <a href="https://github.com/RodenLuo/py4e-cn" target="_blank">Book source on github</a> - (Thanks to Deng Luo) </li> <li> There is an in-China copy of the videos available at <a href="https://www.bilibili.com/video/av46649799" target="_new"> https://www.bilibili.com/video/av46649799</a> </li> </ul> </li> </ul> <p> If you are insterested in starting a translation of the book, I have some instructions for <a href="https://github.com/csev/py4e/blob/master/TRANSLATION.md" target="_blank"> getting started</a>. </p> <p> Chapters 2-10 are heavily adapted from the open book titled: "<a href="http://www.greenteapress.com/thinkpython/thinkCSpy/" target="_blank">Think Python: How to Think like a Computer Scientist</a>" by <a href="http://allendowney.com/" target="_blank">Allen B. Downey</a> and <a href="http://www.elkner.net/" target="_blank">Jeff Elkner</a>. The <a href="http://www.py4inf.com/">Python 2 version</a> of the book is still available. </p> <script src="https://static.tsugi.org/js/jquery-1.11.3.js"></script> <script src="https://static.tsugi.org/bootstrap-3.4.1/js/bootstrap.min.js"></script> <script src="https://static.tsugi.org/js/jquery-ui-1.11.4/jquery-ui.min.js"></script> <script src="https://static.tsugi.org/js/jquery.timeago-1.6.3.js"></script> <script src="https://static.tsugi.org/js/handlebars-v4.0.2.js"></script> <script src="https://static.tsugi.org/tmpljs-3.8.0/tmpl.min.js"></script> <script src="https://static.tsugi.org/js/tsugiscripts.js"></script> <script type="text/javascript"> HEARTBEAT_TIMEOUT = setTimeout(doHeartBeat, _TSUGI.heartbeat); tsugiEmbedMenu(); $(document).ready(function() { jQuery("time.timeago").timeago(); }); </script> <p style="font-size: 75%; margin-top: 5em;"> Copyright Creative Commons Attribution 3.0 - Charles R. Severance </p><script> $('a').each(function (x) { var href = $(this).attr('href'); if ( ! href ) return; if ( ! href.startsWith('#') ) return; var pos = href.indexOf('/?'); if ( pos < 1 ) return; // console.dir('Patching broken # href='+href); href = href.substring(0,pos); $(this).attr('href', href); }); </script> </div></body> </html>