Python for Everybody: Exploring Data in Python 3
Free

Python for Everybody: Exploring Data in Python 3

By Charles R. Severance
Free
Book Description

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. 

Additional materials and purchase options on the author's website.

Table of Contents
  • Python for Everybody
  • Why should you learn to write programs?
    • Creativity and motivation
    • Computer hardware architecture
    • Understanding programming
    • Words and sentences
    • Conversing with Python
    • Terminology: interpreter and compiler
    • Writing a program
    • What is a program?
    • The building blocks of programs
    • What could possibly go wrong?
    • The learning journey
    • Glossary
    • Exercises
  • Variables, expressions, and statements
    • Values and types
    • Variables
    • Variable names and keywords
    • Statements
    • Operators and operands
    • Expressions
    • Order of operations
    • Modulus operator
    • String operations
    • Asking the user for input
    • Comments
    • Choosing mnemonic variable names
    • Debugging
    • Glossary
    • Exercises
  • Conditional execution
    • Boolean expressions
    • Logical operators
    • Conditional execution
    • Alternative execution
    • Chained conditionals
    • Nested conditionals
    • Catching exceptions using try and except
    • Short-circuit evaluation of logical expressions
    • Debugging
    • Glossary
    • Exercises
  • Functions
    • Function calls
    • Built-in functions
    • Type conversion functions
    • Random numbers
    • Math functions
    • Adding new functions
    • Definitions and uses
    • Flow of execution
    • Parameters and arguments
    • Fruitful functions and void functions
    • Why functions?
    • Debugging
    • Glossary
    • Exercises
  • Iteration
    • Updating variables
    • The while statement
    • Infinite loops
    • "Infinite loops" and break
    • Finishing iterations with continue
    • Definite loops using for
    • Loop patterns
      • Counting and summing loops
      • Maximum and minimum loops
    • Debugging
    • Glossary
    • Exercises
  • Strings
    • A string is a sequence
    • Getting the length of a string using len
    • Traversal through a string with a loop
    • String slices
    • Strings are immutable
    • Looping and counting
    • The in operator
    • String comparison
    • string methods
    • Parsing strings
    • Format operator
    • Debugging
    • Glossary
    • Exercises
  • Files
    • Persistence
    • Opening files
    • Text files and lines
    • Reading files
    • Searching through a file
    • Letting the user choose the file name
    • Using try, except, and open
    • Writing files
    • Debugging
    • Glossary
    • Exercises
  • Lists
    • A list is a sequence
    • Lists are mutable
    • Traversing a list
    • List operations
    • List slices
    • List methods
    • Deleting elements
    • Lists and functions
    • Lists and strings
    • Parsing lines
    • Objects and values
    • Aliasing
    • List arguments
    • Debugging
    • Glossary
    • Exercises
  • Dictionaries
    • Dictionary as a set of counters
    • Dictionaries and files
    • Looping and dictionaries
    • Advanced text parsing
    • Debugging
    • Glossary
    • Exercises
  • Tuples
    • Tuples are immutable
    • Comparing tuples
    • Tuple assignment
    • Dictionaries and tuples
    • Multiple assignment with dictionaries
    • The most common words
    • Using tuples as keys in dictionaries
    • Sequences: strings, lists, and tuples - Oh My!
    • Debugging
    • Glossary
    • Exercises
  • Regular expressions
    • Character matching in regular expressions
    • Extracting data using regular expressions
    • Combining searching and extracting
    • Escape character
    • Summary
    • Bonus section for Unix / Linux users
    • Debugging
    • Glossary
    • Exercises
  • Networked programs
    • HyperText Transport Protocol - HTTP
    • The World's Simplest Web Browser
    • Retrieving an image over HTTP
    • Retrieving web pages with urllib
    • Parsing HTML and scraping the web
    • Parsing HTML using regular expressions
    • Parsing HTML using BeautifulSoup
    • Reading binary files using urllib
    • Glossary
    • Exercises
  • Using Web Services
    • eXtensible Markup Language - XML
    • Parsing XML
    • Looping through nodes
    • JavaScript Object Notation - JSON
    • Parsing JSON
    • Application Programming Interfaces
    • Google geocoding web service
    • Security and API usage
    • Glossary
    • Exercises
  • Object-Oriented Programming
    • Managing Larger Programs
    • Getting Started
    • Using Objects
    • Starting with Programs
    • Subdividing a Problem - Encapsulation
    • Our First Python Object
    • Classes as Types
    • Object Lifecycle
    • Many Instances
    • Inheritance
    • Summary
    • Glossary
  • Using databases and SQL
    • What is a database?
    • Database concepts
    • Database Browser for SQLite
    • Creating a database table
    • Structured Query Language summary
    • Spidering Twitter using a database
    • Basic data modeling
    • Programming with multiple tables
      • Constraints in database tables
      • Retrieve and/or insert a record
      • Storing the friend relationship
    • Three kinds of keys
    • Using JOIN to retrieve data
    • Summary
    • Debugging
    • Glossary
  • Visualizing data
    • Building a Google map from geocoded data
    • Visualizing networks and interconnections
    • Visualizing mail data
    • Credits
    • Printing History
    • Copyright Details
  • Preface
    • Remixing an Open Book
  • Contributions
    • Contributor List for Python for Everybody
    • Contributor List for Python for Informatics
    • Preface for "Think Python"
      • The strange history of "Think Python"
      • Acknowledgements for "Think Python"
    • Contributor List for "Think Python"
  • Copyright Detail
    No review for this book yet, be the first to review.
      No comment for this book yet, be the first to comment
      You May Also Like
      Also Available On
      App store smallGoogle play small
      Categories
      Curated Lists
      • Pattern Recognition and Machine Learning (Information Science and Statistics)
        by Christopher M. Bishop
        Data mining
        by I. H. Witten
        The Elements of Statistical Learning: Data Mining, Inference, and Prediction
        by Various
        See more...
      • CK-12 Chemistry
        by Various
        Concept Development Studies in Chemistry
        by John Hutchinson
        An Introduction to Chemistry - Atoms First
        by Mark Bishop
        See more...
      • Microsoft Word - How to Use Advanced Algebra II.doc
        by Jonathan Emmons
        Advanced Algebra II: Activities and Homework
        by Kenny Felder
        de2de
        by
        See more...
      • The Sun Who Lost His Way
        by
        Tania is a Detective
        by Kanika G
        Firenze_s-Light
        by
        See more...
      • Java 3D Programming
        by Daniel Selman
        The Java EE 6 Tutorial
        by Oracle Corporation
        JavaKid811
        by
        See more...