Python for Everybody : (Record no. 2421)

MARC details
000 -LEADER
fixed length control field 17232nam a22001697a 4500
005 - DATE AND TIME OF LATEST TRANSACTION
control field 20240924150514.0
008 - FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION
fixed length control field 240924b |||||||| |||| 00| 0 eng d
020 ## - INTERNATIONAL STANDARD BOOK NUMBER
International Standard Book Number 9789352136278
082 ## - DEWEY DECIMAL CLASSIFICATION NUMBER
Classification number 005.133
Item number SEV
100 ## - MAIN ENTRY--PERSONAL NAME
Personal name Severance, Charles
245 ## - TITLE STATEMENT
Title Python for Everybody :
Remainder of title Exploring Data Using Python 3
Statement of responsibility, etc. Charles Severance,
260 ## - PUBLICATION, DISTRIBUTION, ETC.
Place of publication, distribution, etc. Mumbai
Name of publisher, distributor, etc. Shroff Publishers & Distributors Pvt. Ltd.
Date of publication, distribution, etc. 2020
300 ## - PHYSICAL DESCRIPTION
Page number 235
505 ## - FORMATTED CONTENTS NOTE
Title 1 Why should you learn to write programs? 1<br/>1.1 Creativity and motivation . . . . . . . . . . . . . . . . . . . . . . . 2<br/>1.2 Computer hardware architecture . . . . . . . . . . . . . . . . . . . 3<br/>1.3 Understanding programming . . . . . . . . . . . . . . . . . . . . . 4<br/>1.4 Words and sentences . . . . . . . . . . . . . . . . . . . . . . . . . . 5<br/>1.5 Conversing with Python . . . . . . . . . . . . . . . . . . . . . . . . 6<br/>1.6 Terminology: interpreter and compiler . . . . . . . . . . . . . . . . 8<br/>1.7 Writing a program . . . . . . . . . . . . . . . . . . . . . . . . . . . 10<br/>1.8 What is a program? . . . . . . . . . . . . . . . . . . . . . . . . . . 10<br/>1.9 The building blocks of programs . . . . . . . . . . . . . . . . . . . . 11<br/>1.10 What could possibly go wrong? . . . . . . . . . . . . . . . . . . . . 12<br/>1.11 The learning journey . . . . . . . . . . . . . . . . . . . . . . . . . . 14<br/>1.12 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14<br/>1.13 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15<br/>2 Variables, expressions, and statements 17<br/>2.1 Values and types . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17<br/>2.2 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18<br/>2.3 Variable names and keywords . . . . . . . . . . . . . . . . . . . . . 19<br/>2.4 Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br/>2.5 Operators and operands . . . . . . . . . . . . . . . . . . . . . . . . 20<br/>2.6 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br/>2.7 Order of operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br/>2.8 Modulus operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22<br/>2.9 String operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22<br/>2.10 Asking the user for input . . . . . . . . . . . . . . . . . . . . . . . 22<br/>v<br/>vi CONTENTS<br/>2.11 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23<br/>2.12 Choosing mnemonic variable names . . . . . . . . . . . . . . . . . . 24<br/>2.13 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26<br/>2.14 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br/>2.15 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br/>3 Conditional execution 29<br/>3.1 Boolean expressions . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br/>3.2 Logical operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30<br/>3.3 Conditional execution . . . . . . . . . . . . . . . . . . . . . . . . . 30<br/>3.4 Alternative execution . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br/>3.5 Chained conditionals . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br/>3.6 Nested conditionals . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br/>3.7 Catching exceptions using try and except . . . . . . . . . . . . . . 34<br/>3.8 Short-circuit evaluation of logical expressions . . . . . . . . . . . . 35<br/>3.9 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br/>3.10 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br/>3.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br/>4 Functions 41<br/>4.1 Function calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br/>4.2 Built-in functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br/>4.3 Type conversion functions . . . . . . . . . . . . . . . . . . . . . . . 42<br/>4.4 Random numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43<br/>4.5 Math functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44<br/>4.6 Adding new functions . . . . . . . . . . . . . . . . . . . . . . . . . 45<br/>4.7 Definitions and uses . . . . . . . . . . . . . . . . . . . . . . . . . . 46<br/>4.8 Flow of execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47<br/>4.9 Parameters and arguments . . . . . . . . . . . . . . . . . . . . . . 48<br/>4.10 Fruitful functions and void functions . . . . . . . . . . . . . . . . . 49<br/>4.11 Why functions? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br/>4.12 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br/>4.13 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51<br/>4.14 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52<br/>CONTENTS vii<br/>5 Iteration 55<br/>5.1 Updating variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 55<br/>5.2 The while statement . . . . . . . . . . . . . . . . . . . . . . . . . . 55<br/>5.3 Infinite loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56<br/>5.4 “Infinite loops” and break ....................... 56<br/>5.5 Finishing iterations with continue .................. 57<br/>5.6 Definite loops using for ........................ 58<br/>5.7 Loop patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59<br/>5.7.1 Counting and summing loops . . . . . . . . . . . . . . . . . 59<br/>5.7.2 Maximum and minimum loops . . . . . . . . . . . . . . . . 60<br/>5.8 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62<br/>5.9 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62<br/>5.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62<br/>6 Strings 65<br/>6.1 A string is a sequence . . . . . . . . . . . . . . . . . . . . . . . . . 65<br/>6.2 Getting the length of a string using len ............... 66<br/>6.3 Traversal through a string with a loop . . . . . . . . . . . . . . . . 66<br/>6.4 String slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67<br/>6.5 Strings are immutable . . . . . . . . . . . . . . . . . . . . . . . . . 68<br/>6.6 Looping and counting . . . . . . . . . . . . . . . . . . . . . . . . . 68<br/>6.7 The in operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69<br/>6.8 String comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . 69<br/>6.9 string methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69<br/>6.10 Parsing strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72<br/>6.11 Format operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72<br/>6.12 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73<br/>6.13 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74<br/>6.14 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75<br/>7 Files 77<br/>7.1 Persistence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77<br/>7.2 Opening files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77<br/>7.3 Text files and lines . . . . . . . . . . . . . . . . . . . . . . . . . . . 79<br/>7.4 Reading files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80<br/>viii CONTENTS<br/>7.5 Searching through a file . . . . . . . . . . . . . . . . . . . . . . . . . 81<br/>7.6 Letting the user choose the file name . . . . . . . . . . . . . . . . . 83<br/>7.7 Using try, except, and open .................... 84<br/>7.8 Writing files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85<br/>7.9 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86<br/>7.10 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86<br/>7.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87<br/>8 Lists 89<br/>8.1 A list is a sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . 89<br/>8.2 Lists are mutable . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90<br/>8.3 Traversing a list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90<br/>8.4 List operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91<br/>8.5 List slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92<br/>8.6 List methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92<br/>8.7 Deleting elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93<br/>8.8 Lists and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 94<br/>8.9 Lists and strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95<br/>8.10 Parsing lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96<br/>8.11 Objects and values . . . . . . . . . . . . . . . . . . . . . . . . . . . 97<br/>8.12 Aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98<br/>8.13 List arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98<br/>8.14 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100<br/>8.15 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103<br/>8.16 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103<br/>9 Dictionaries 105<br/>9.1 Dictionary as a set of counters . . . . . . . . . . . . . . . . . . . . 107<br/>9.2 Dictionaries and files . . . . . . . . . . . . . . . . . . . . . . . . . . 108<br/>9.3 Looping and dictionaries . . . . . . . . . . . . . . . . . . . . . . . . 109<br/>9.4 Advanced text parsing . . . . . . . . . . . . . . . . . . . . . . . . . . 111<br/>9.5 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112<br/>9.6 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113<br/>9.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113<br/>CONTENTS ix<br/>10 Tuples 115<br/>10.1 Tuples are immutable . . . . . . . . . . . . . . . . . . . . . . . . . 115<br/>10.2 Comparing tuples . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116<br/>10.3 Tuple assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118<br/>10.4 Dictionaries and tuples . . . . . . . . . . . . . . . . . . . . . . . . . 119<br/>10.5 Multiple assignment with dictionaries . . . . . . . . . . . . . . . . 120<br/>10.6 The most common words . . . . . . . . . . . . . . . . . . . . . . . . 121<br/>10.7 Using tuples as keys in dictionaries . . . . . . . . . . . . . . . . . . 122<br/>10.8 Sequences: strings, lists, and tuples - Oh My! . . . . . . . . . . . . 122<br/>10.9 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123<br/>10.10Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124<br/>10.11Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125<br/>11 Regular expressions 127<br/>11.1 Character matching in regular expressions . . . . . . . . . . . . . . 128<br/>11.2 Extracting data using regular expressions . . . . . . . . . . . . . . 129<br/>11.3 Combining searching and extracting . . . . . . . . . . . . . . . . . 132<br/>11.4 Escape character . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135<br/>11.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136<br/>11.6 Bonus section for Unix / Linux users . . . . . . . . . . . . . . . . . 137<br/>11.7 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137<br/>11.8 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138<br/>11.9 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138<br/>12 Networked programs 141<br/>12.1 HyperText Transport Protocol - HTTP . . . . . . . . . . . . . . . . 141<br/>12.2 The World’s Simplest Web Browser . . . . . . . . . . . . . . . . . . 142<br/>12.3 Retrieving an image over HTTP . . . . . . . . . . . . . . . . . . . 143<br/>12.4 Retrieving web pages with urllib .................. 146<br/>12.5 Parsing HTML and scraping the web . . . . . . . . . . . . . . . . . 147<br/>12.6 Parsing HTML using regular expressions . . . . . . . . . . . . . . . 147<br/>12.7 Parsing HTML using BeautifulSoup . . . . . . . . . . . . . . . . . 148<br/>12.8 Reading binary files using urllib . . . . . . . . . . . . . . . . . . . . 150<br/>12.9 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152<br/>12.10Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152<br/>x CONTENTS<br/>13 Using Web Services 155<br/>13.1 eXtensible Markup Language - XML . . . . . . . . . . . . . . . . . 155<br/>13.2 Parsing XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156<br/>13.3 Looping through nodes . . . . . . . . . . . . . . . . . . . . . . . . . 157<br/>13.4 JavaScript Object Notation - JSON . . . . . . . . . . . . . . . . . . 158<br/>13.5 Parsing JSON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158<br/>13.6 Application Programming Interfaces . . . . . . . . . . . . . . . . . 159<br/>13.7 Google geocoding web service . . . . . . . . . . . . . . . . . . . . . . 161<br/>13.8 Security and API usage . . . . . . . . . . . . . . . . . . . . . . . . 163<br/>13.9 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168<br/>13.10Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168<br/>14 Object-Oriented Programming 169<br/>14.1 Managing Larger Programs . . . . . . . . . . . . . . . . . . . . . . 169<br/>14.2 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170<br/>14.3 Using Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170<br/>14.4 Starting with Programs . . . . . . . . . . . . . . . . . . . . . . . . . 171<br/>14.5 Subdividing a Problem - Encapsulation . . . . . . . . . . . . . . . 173<br/>14.6 Our First Python Object . . . . . . . . . . . . . . . . . . . . . . . 174<br/>14.7 Classes as Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176<br/>14.8 Object Lifecycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177<br/>14.9 Many Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178<br/>14.10Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179<br/>14.11Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180<br/>14.12Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181<br/>15 Using Databases and SQL 183<br/>15.1 What is a database? . . . . . . . . . . . . . . . . . . . . . . . . . . 183<br/>15.2 Database concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . 183<br/>15.3 Database Browser for SQLite . . . . . . . . . . . . . . . . . . . . . 184<br/>15.4 Creating a database table . . . . . . . . . . . . . . . . . . . . . . . 184<br/>15.5 Structured Query Language summary . . . . . . . . . . . . . . . . 187<br/>15.6 Spidering Twitter using a database . . . . . . . . . . . . . . . . . . 189<br/>15.7 Basic data modeling . . . . . . . . . . . . . . . . . . . . . . . . . . 194<br/>15.8 Programming with multiple tables . . . . . . . . . . . . . . . . . . 195<br/>CONTENTS xi<br/>15.8.1 Constraints in database tables . . . . . . . . . . . . . . . . 198<br/>15.8.2 Retrieve and/or insert a record . . . . . . . . . . . . . . . . 199<br/>15.8.3 Storing the friend relationship . . . . . . . . . . . . . . . . . 200<br/>15.9 Three kinds of keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201<br/>15.10Using JOIN to retrieve data . . . . . . . . . . . . . . . . . . . . . . 202<br/>15.11Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204<br/>15.12Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205<br/>15.13Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205<br/>16 Visualizing data 207<br/>16.1 Building a Google map from geocoded data . . . . . . . . . . . . . 207<br/>16.2 Visualizing networks and interconnections . . . . . . . . . . . . . . 209<br/>16.3 Visualizing mail data . . . . . . . . . . . . . . . . . . . . . . . . . . 212<br/>A Contributions 219<br/>A.1 Contributor List for Python for Everybody . . . . . . . . . . . . . 219<br/>A.2 Contributor List for Python for Informatics . . . . . . . . . . . . . 219<br/>A.3 Preface for “Think Python” . . . . . . . . . . . . . . . . . . . . . . 219<br/>A.3.1 The strange history of “Think Python” . . . . . . . . . . . 219<br/>A.3.2 Acknowledgements for “Think Python” . . . . . . . . . . . . 221<br/>A.4 Contributor List for “Think Python” . . . . . . . . . . . . . . . . . . 221
520 ## - SUMMARY, ETC.
Summary, etc. Python for Everybody is designed to introduce students to programming and software development through the lens of exploring data. You can think of the Python programming language as your tool to solve data problems that are beyond the capability of a spreadsheet. Python is an easy to use and easy to learn programming language that is freely available on Macintosh, Windows, or Linux computers. So once you learn Python you can use it for the rest of your career without needing to purchase any software. This book uses the Python 3 language. The earlier Python 2 version of this book is titled ""Python for Informatics: Exploring Information."" There are free downloadable electronic copies of this book in various formats and supporting materials for the book at www.py4e.com. The course materials are available to you under a Creative Commons License so you can adapt them to teach your own Python course.
942 ## - ADDED ENTRY ELEMENTS (KOHA)
Source of classification or shelving scheme Dewey Decimal Classification
Koha item type Books
952 ## - LOCATION AND ITEM INFORMATION (KOHA)
-- 7844
952 ## - LOCATION AND ITEM INFORMATION (KOHA)
-- 7845
Holdings
Withdrawn status Lost status Source of classification or shelving scheme Damaged status Not for loan Collection code Home library Current library Shelving location Date acquired Source of acquisition Cost, normal purchase price Inventory number Total Checkouts Full call number Barcode Checked out Date last seen Date last checked out Cost, replacement price Price effective from Currency Koha item type
    Dewey Decimal Classification     Non-fiction IIITDM Kurnool IIITDM Kurnool COMPUTER SCIENCE ENGINEERING 24.09.2024 Satish Serials 575.00 SSP:2024-25/098 DT 28-08-2024 1 005.133 SEV 0006826 17.01.2025 19.12.2024 19.12.2024 575.00 24.09.2024 INR Books
    Dewey Decimal Classification   Not For Loan Reference IIITDM Kurnool IIITDM Kurnool Reference 24.09.2024 Satish Serials 575.00 SSP:2024-25/098 DT 28-08-2024   005.133 SEV 0006827   24.09.2024   575.00 24.09.2024 INR Reference
LIBRARY HOURS
Mon - Sat : 9:00 AM - 5.30 PM
Library will remain closed on public holidays
Contact Us

Librarian
Central Libray
Indian Institute of Information Technology Design and Manufacturing Kurnool
Andhra Pradesh - 518 007

Library Email ID: library@iiitk.ac.in

Copyright @ Central Library | IIITDM Kurnool

Powered by Koha