Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by
Python All-in-One For Dummies, 2nd Edition
Cover
Title Page
Copyright
Introduction
About This Book
Foolish Assumptions
What to Buy
Icons Used in This Book
Beyond the Book
Where to Go from Here
Book 1: Getting Started
Chapter 1: Starting with Python
Why Python Is Hot
Choosing the Right Python
Tools for Success
Writing Python in VS Code
Using Jupyter Notebook for Coding
Chapter 2: Interactive Mode, Getting Help, and Writing Apps
Using Python's Interactive Mode
Creating a Python Development Workspace
Creating a Folder for Your Python Code
Typing, Editing, and Debugging Python Code
Writing Code in a Jupyter Notebook
Chapter 3: Python Elements and Syntax
The Zen of Python
Introducing Object-Oriented Programming
Discovering Why Indentations Count, Big Time
Using Python Modules
Chapter 4: Building Your First Python Application
Opening the Python App File
Typing and Using Python Comments
Understanding Python Data Types
Working with Python Operators
Creating and Using Variables
Understanding What Syntax Is and Why It Matters
Putting Code Together
Book 2: Understanding Python Building Blocks
Chapter 1: Working with Numbers, Text, and Dates
Calculating Numbers with Functions
Still More Math Functions
Formatting Numbers
Grappling with Weirder Numbers
Manipulating Strings
Uncovering Dates and Times
Accounting for Time Zones
Working with Time Zones
Chapter 2: Controlling the Action
Main Operators for Controlling the Action
Making Decisions with if
Repeating a Process with for
Looping with while
Chapter 3: Speeding Along with Lists and Tuples
Defining and Using Lists
What's a Tuple and Who Cares?
Working with Sets
Chapter 4: Cruising Massive Data with Dictionaries
Understanding Data Dictionaries
Creating a Data Dictionary
Looping through a Dictionary
Data Dictionary Methods
Copying a Dictionary
Deleting Dictionary Items
Having Fun with Multi-Key Dictionaries
Chapter 5: Wrangling Bigger Chunks of Code
Creating a Function
Commenting a Function
Passing Information to a Function
Returning Values from Functions
Unmasking Anonymous Functions
Chapter 6: Doing Python with Class
Mastering Classes and Objects
Creating a Class
Creating an Instance from a Class
Giving an Object Its Attributes
Giving a Class Methods
Understanding Class Inheritance
Chapter 7: Sidestepping Errors
Understanding Exceptions
Handling Errors Gracefully
Being Specific about Exceptions
Keeping Your App from Crashing
Adding an else to the Mix
Using try … except … else … finally
Raising Your Own Exceptions
Book 3: Working with Libraries
Chapter 1: Working with External Files
Understanding Text and Binary Files
Opening and Closing Files
Reading a File’s Contents
Looping through a File
Reading and Copying a Binary File
Conquering CSV Files
Converting from CSV to Objects and Dictionaries
Chapter 2: Juggling JSON Data
Organizing JSON Data
Understanding Serialization
Loading Data from JSON Files
Dumping Python Data to JSON
Chapter 3: Interacting with the Internet
Seeing How the Web Works
Chapter 4: Libraries, Packages, and Modules
Understanding the Python Standard Library
Exploring Python Packages
Importing Python Modules
Making Your Own Modules
Book 4: Using Artificial Intelligence
Chapter 1: Exploring Artificial Intelligence
AI Is a Collection of Techniques
Current Limitations of AI
Chapter 2: Building a Neural Network
Understanding Neural Networks
Building a Simple Neural Network in Python
Building a Python Neural Network in TensorFlow
Chapter 3: Doing Machine Learning
Learning by Looking for Solutions in All the Wrong Places
Creating a Machine-Learning Network for Detecting Clothes Types
Visualizing with MatPlotLib
Learning More Machine Learning
Chapter 4: Exploring AI
Limitations of the Raspberry Pi and AI
Adding Hardware AI to the Raspberry Pi
AI in the Cloud
AI on a Graphics Card
Where to Go for More AI Fun in Python
Book 5: Doing Data Science
Chapter 2: Exploring Big Data
Introducing NumPy, Pandas, and MatPlotLib
Doing Your First Data Science Project
Chapter 3: Using Big Data from Google Cloud
What Is Big Data?
Understanding Google Cloud and BigQuery
Reading the Medicare Big Data
Looking for the Most Polluted City in the World on an Hourly Basis
Book 6: Talking to Hardware
Chapter 1: Introducing Physical Computing
Physical Computing Is Fun
What Is a Raspberry Pi?
Building Projects That Move and Sense the Environment
Sensing the Environment with the Raspberry Pi
Controlling an LED with Python
But Wait, There's More
Chapter 2: No Soldering! Using Grove Connectors for Building
Working with the Grove System
Grove Connectors
Connecting with Grove Cables
Chapter 3: Sensing the World
Understanding I2C
Measuring Oxygen and a Flame
Building a Dashboard on Your Phone with Blynk
Where to Go from Here
Chapter 4: Making Things Move
Exploring Electric Motors
Controlling a DC Motor
Running a Servo Motor
Making a Stepper Motor Step
Book 7: Building Robots
Chapter 1: Introducing Robotics
A Robot Is Not Always Like a Human
Not Every Robot Has Arms or Wheels
Understanding the Main Parts of a Robot
Programming Robots
Chapter 2: Building Your First Python Robot
Introducing the Mars Rover PiCar-B
Assembling the Robot
Testing Your Robot
Chapter 3: Programming Your Robot Rover
Building a Simple, High-Level Python Interface
Making a Single Move with Python
Functions of the RobotInterface Class
The Python Robot Interface Test
Coordinating Motor Movements with Sensors
Making a Python Brain for Our Robot
Overview of the Included Adeept Software
Where to Go from Here
Chapter 4: Using Artificial Intelligence in Robotics
This Chapter’s Projects: Going to the Dogs
Setting Up the First Project
Machine Learning Using TensorFlow
Testing the Trained Network
Taking Cats and Dogs to Our Robot
Setting Up the Second Project
The FindAndChaseTheBall.py Python Program
The Main Program
AI and the Future of Robotics
Index
About the Authors
Connect with Dummies
End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Title Page
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset