[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-detail-682648-en":59,"doc-seo-682648-105":95,"doc-similar-682648":158},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":5,"data":60},{"doc_id":61,"user_id":62,"nickname":63,"user_avatar":64,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":66,"doc_content":67,"file_id":68,"file_url":69,"file_type":70,"file_size":71,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":72,"language":73,"language_code":74,"site_id":75,"html_lang":74,"table_of_contents":76,"faqs":77,"seo_title":78,"seo_description":66,"update_tm":79,"read_time":80,"preview_page_count":81,"preview_urls":82},682648,19241458193282,"BAd apple","https://us-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Python - Visual QuickStart Guide - Quick and easy way","Visual QuickStart Guide - Python (Third Edition) provides a fast, beginner-friendly path into programming with Python, presented through clear learning structure. Front matter explains rights, trademark, and liability notices, followed by an organized Contents at a Glance and a detailed Table of Contents. The book covers core fundamentals such as arithmetic, strings, variables, program writing, flow of control, functions, data structures, input/output, exception handling, and object-oriented programming. It also includes a case study on text statistics and appendix resources comparing Python versions and popular packages.","VISUAL QUICKSTART GUIDE  \nL A R RY U L L M A N  \nPython  \nThird Edition  \nTOBY DONALDSON  \nLEARN THE QUICK AND EASY WAY!  \nVIS UAL Q UIC K STA RT G UIDE  \nPython  \nTOBY DONALDSON  \n Peachpit Press  \nVisual QuickStart Guide  \nPython, Third Edition  \nToby Donaldson  \nPeachpit Press [www.peachpit.com](www.peachpit.com)  \nTo report errors, [please send a note to errata@peachpit.com](please send a note to errata@peachpit.com)[ ](please send a note to errata@peachpit.com)Peachpit Press is a division of Pearson Education Copyright © 2014 by Toby Donaldson  \nEditor: Scout Festa  \nProduction Editor: Katerina Malone  \nCompositor: David Van Ness  \nIndexer: Valerie Haynes Perry  \nCover Design: RHDG / Riezebos Holzbaur Design Group, Peachpit Press  \nInterior Design: Peachpit Press  \nLogo Design: MINE™ [www.minesf.com](www.minesf.com)  \nNotice of Rights  \nAll rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. For information on getting permission for reprints and excerpts, [contact permissions@peachpit.com](contact permissions@peachpit.com).  \nNotice of Liability  \nThe information in this book is distributed on an “As Is” basis, without warranty. While every precaution has been taken in the preparation of the book, neither the author nor Peachpit shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the instructions contained in this book or by the computer software and hardware products described in it.  \nTrademarks  \nVisual QuickStart Guide is a registered trademark of Peachpit Press, a division of Pearson Education.  \nMany of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Peachpit was aware of a trademark claim, the designations appear as requested by the owner of the trademark. All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention of infringement of the trademark. No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with this book.  \nISBN-13: 978-0-321-92955-6  \nISBN-10: 0-321-92955-1 9 8 7 6 5 4 3 2 1  \nPrinted and bound in the United States of America  \nAcknowledgments  \nThanks to Clifford Colby and Scout Festa for their expertise and patience in bringing this edition of the book to life; to the many students at SFU who continue to teach me how best to learn Python; to John Edgar and the other computer science teachers at SFU with whom I’ve had the pleasure to work; and to Bonnie, Thomas, and Emily for recommending I avoid using the word blithering more than once in these acknowledgments. And a special thank you to Guido van Rossum and the rest ofthe Python community for creating a programming language that is so much fun to use.  \nContents at a Glance  \nChapter 1 Introduction to Programming ............. 1  \nChapter 2 Arithmetic, Strings, and Variables .......... 9  \nChapter 3 Writing Programs .................... 31  \nChapter 4 Flow of Control ..................... 43  \nChapter 5 Functions ......................... 67  \nChapter 6 Strings ........................... 83  \nChapter 7 Data Structures ..................... 101  \nChapter 8 Input and Output .................... 123  \nChapter 9 Exception Handling .................. 143  \nChapter 10 Object-Oriented Programming ........... 153  \nChapter 11 Case Study: Text Statistics .............. 177  \nAppendix A Popular Python Packages ............... 195  \nAppendix B Comparing Python 2 and Python 3 ........ 199  \nIndex ............................ 203  \nTable of Contents  \nChapter 1 Introduction to Programming .............. 1  \nThe Python Language .................... 2  \nWhat Is Pytho","cbCaimnzbaMebfwH","https://ap.wps.com/l/cbCaimnzbaMebfwH","pdf",2513767,23,"English","en",105,"# Chapter 1 Introduction to Programming\n## The Python Language\n## What Is Python Useful For?\n## How Programmers Work\n## Installing Python\n# Chapter 2 Arithmetic, Strings, and Variables\n## The Interactive Command Shell\n## Integer Arithmetic\n## Floating Point Arithmetic\n## Strings\n## String Concatenation\n## Getting Help\n## Converting Between Types\n## Variables and Values\n## Assignment Statements\n## How Variables Refer to Values\n## Multiple Assignment\n# Chapter 3 Writing Programs\n## Using IDLE’s Editor\n## Compiling Source Code\n## Reading Strings from the Keyboard\n## Printing Strings on the Screen\n## Source Code Comments\n## Structuring a Program\n# Chapter 4 Flow of Control\n## Boolean Logic\n## If-Statements\n## Code Blocks and Indentation\n## Loops\n## Comparing For-Loops and While-Loops\n## Breaking Out of Loops and Blocks\n## Loops Within Loops\n# Chapter 5 Functions\n## Calling Functions\n## Defining Functions\n## Variable Scope\n## Using a main Function\n## Function Parameters\n## Modules\n# Chapter 6 Strings\n## String Indexing\n## Characters\n## Slicing Strings","[{\"question\":\"What programming topics are covered in the early chapters?\",\"answer\":\"Early chapters introduce the Python language, installing Python, arithmetic concepts, strings, variables, and how to write and structure simple programs using IDLE and source code practices.\"},{\"question\":\"How does the book teach program logic and control flow?\",\"answer\":\"It covers boolean logic, if-statements, code blocks and indentation, loops, comparisons between for-loops and while-loops, and techniques for breaking out of loops and blocks.\"},{\"question\":\"Does it include examples beyond basic syntax?\",\"answer\":\"Yes. The Contents at a Glance lists a case study on text statistics, along with chapters that move into data handling such as input/output and exception handling.\"}]","Python - Visual QuickStart Guide - Quick and easy way | PDF",1793977311,58,3,[83,87,91],{"page_no":8,"url":84,"width":85,"height":86},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/c13482b7cc1afd422791108e0e493c44.webp",983,1263,{"page_no":14,"url":88,"width":89,"height":90},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/b68f61663e160235a0d2ee64271c7a5c.webp",982,1262,{"page_no":81,"url":92,"width":93,"height":94},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/3ee3b87aba812e8c37d3afd31cf61fea.webp",981,1261,{"code":4,"msg":96,"data":97},"ok",{"site_id":75,"language":74,"slug":98,"title":65,"keywords":99,"description":66,"schema_data":100,"social_meta":153,"head_meta":155,"extra_data":157,"updated_unix":79},"python-visual-quickstart-guide-quick-and-easy-way","",{"@graph":101,"@context":152},[102,115,135],{"@type":103,"itemListElement":104},"BreadcrumbList",[105,109,111,113],{"item":106,"name":107,"@type":108,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":110,"name":9,"@type":108,"position":14},"https://docshare.wps.com/document/",{"item":112,"name":30,"@type":108,"position":81},"https://docshare.wps.com/document/technology/",{"item":114,"name":65,"@type":108,"position":19},"https://docshare.wps.com/document/python-visual-quickstart-guide-quick-and-easy-way/682648/",{"url":114,"name":65,"@type":116,"image":117,"author":122,"headline":65,"publisher":124,"fileFormat":127,"inLanguage":74,"description":66,"dateModified":128,"datePublished":129,"encodingFormat":127,"isAccessibleForFree":130,"interactionStatistic":131},"DigitalDocument",{"url":118,"@type":119,"width":120,"height":121},"https://docshare.wps.com/thumbnails/python-visual-quickstart-guide-quick-and-easy-way/682648.png","ImageObject",300,407,{"name":63,"@type":123},"Person",{"url":106,"name":125,"@type":126},"DocShare","Organization","application/pdf","2026-11-28","2026-11-06",true,{"@type":132,"interactionType":133,"userInteractionCount":24},"InteractionCounter",{"@type":134},"ViewAction",{"@type":136,"mainEntity":137},"FAQPage",[138,144,148],{"name":139,"@type":140,"acceptedAnswer":141},"What programming topics are covered in the early chapters?","Question",{"text":142,"@type":143},"Early chapters introduce the Python language, installing Python, arithmetic concepts, strings, variables, and how to write and structure simple programs using IDLE and source code practices.","Answer",{"name":145,"@type":140,"acceptedAnswer":146},"How does the book teach program logic and control flow?",{"text":147,"@type":143},"It covers boolean logic, if-statements, code blocks and indentation, loops, comparisons between for-loops and while-loops, and techniques for breaking out of loops and blocks.",{"name":149,"@type":140,"acceptedAnswer":150},"Does it include examples beyond basic syntax?",{"text":151,"@type":143},"Yes. The Contents at a Glance lists a case study on text statistics, along with chapters that move into data handling such as input/output and exception handling.","https://schema.org",{"og:url":114,"og:type":154,"og:title":65,"og:site_name":125,"og:description":66},"article",{"robots":156,"canonical":114},"index,follow",{"doc_id":61,"site_id":75},{"list":159,"token":99},[160,166,172,178,183,190,196,202,208,214],{"doc_id":161,"doc_title":162,"file_type":70,"home_preview_img_url":163,"slug":164,"view_count":19,"category_name":30,"create_tm":165},671798,"Python - Visual QuickStart Guide Table of Contents - Chapter 1 to Appendix B","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988403999/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=hUxjizECcoxwOJ6OP2tRxGZ7ixo%3D","python-visual-quickstart-guide-table-of-contents-chapter-1-to-appendix-b",1793580658,{"doc_id":167,"doc_title":168,"file_type":70,"home_preview_img_url":169,"slug":170,"view_count":81,"category_name":30,"create_tm":171},682644,"Visual QuickStart Guide - Python - Third Edition - Learn the quick and easy way","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999674919/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=AW8d77FQWEG1gpjeh3X092BL3LU%3D","visual-quickstart-guide-python-third-edition-learn-the-quick-and-easy-way",1793977303,{"doc_id":173,"doc_title":174,"file_type":70,"home_preview_img_url":175,"slug":176,"view_count":34,"category_name":30,"create_tm":177},692229,"A Beginners Guide to Python 3 Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003011037/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=RGQu96wK4oPJjrq9U8o%2F%2F17ioQs%3D","a-beginners-guide-to-python-3-programming-692229",1794186373,{"doc_id":179,"doc_title":174,"file_type":70,"home_preview_img_url":180,"slug":181,"view_count":81,"category_name":30,"create_tm":182},682652,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998958669/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=eZiTwvNcc%2BbB5sjyVDGJ577Embw%3D","a-beginners-guide-to-python-3-programming",1793977325,{"doc_id":184,"doc_title":185,"file_type":70,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":30,"create_tm":189},347076,"Core Java - Volume 1 - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910997667/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=A0NtT%2Bou2RUw7b0KZByV8zFojR0%3D","core-java-volume-1-twelfth-edition",31,1790065168,{"doc_id":191,"doc_title":192,"file_type":70,"home_preview_img_url":193,"slug":194,"view_count":81,"category_name":30,"create_tm":195},682651,"PyScaffold Documentation - Release 4.6","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999675051/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Kuevq7S6g3YyWjR%2BG%2FelElhMut4%3D","pyscaffold-documentation-release-46",1793977319,{"doc_id":197,"doc_title":198,"file_type":70,"home_preview_img_url":199,"slug":200,"view_count":29,"category_name":30,"create_tm":201},692236,"Python Tutorial - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003011327/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=JP1Jao1RvKIg%2BvAko2hOtJQwsB8%3D","python-tutorial-introduction",1794186391,{"doc_id":203,"doc_title":204,"file_type":70,"home_preview_img_url":205,"slug":206,"view_count":19,"category_name":30,"create_tm":207},685652,"A Level Computer Science Programming Languages Guide - Version 2 - Introduction-focused overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000172816/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=3fMEWihs%2BRmEHAo9zD0Sq2Oq5eM%3D","a-level-computer-science-programming-languages-guide-version-2-introduction-focused-overview",1794016328,{"doc_id":209,"doc_title":210,"file_type":70,"home_preview_img_url":211,"slug":212,"view_count":19,"category_name":30,"create_tm":213},732768,"SINUMERIK 840D sl G code programming - Programming Manual - Safety, Qualified Personnel, and External Programming Cycles","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031411651/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=dCFDHqKoeikRj1L1lZEZmE0V%2BOk%3D","sinumerik-840d-sl-g-code-programming-programming-manual-safety-qualified-personnel-and-external-programming-cycles",1795382209,{"doc_id":215,"doc_title":216,"file_type":70,"home_preview_img_url":217,"slug":218,"view_count":46,"category_name":30,"create_tm":219},347081,"Java - Programming - Ninth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910997878/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=MStT2Tcql5OUbvAFxSpk1xhR2u0%3D","java-programming-ninth-edition",1790065180]