Problem Solving with Python
Type to start searching
GitHub
Problem Solving with Python
GitHub
Home
Preface
Preface
Motivation
Acknowledgments
Supporting Materials
Formatting Conventions
Errata
Chapter 1 Orientation
Chapter 1 Orientation
Introduction
Why Python?
The Anaconda Distribution of Python
Installing Anaconda on Windows
Installing Anaconda on MacOS
Installing Anaconda on Linux
Installing Python from Python.org
Summary
Review Questions
Chapter 2 Jupyter Notebooks
Chapter 2 Jupyter Notebooks
Introduction
What is a Jupyter Notebook?
Why Jupyter Notebooks?
Installing Juypter
Opening a Jupyter Notebook
The Jupyter Notebook Interface
Magic Commands
Getting Help in a Jupyter Notebook
Summary
Review Questions
Chapter 3 The Python REPL
Chapter 3 The Python REPL
Introduction
Python as a Calculator
Variables
String Operations
Print Statements
Summary
Review Questions
Chapter 4 Data Types and Variables
Chapter 4 Data Types and Variables
Introduction
Numeric Data Types
Boolean Data Type
Strings
Lists
Dictionaries and Tuples
Summary
Review Questions
Chapter 5 NumPy and Arrays
Chapter 5 NumPy and Arrays
Introduction
NumPy
Installing NumPy
Python Lists and NumPy Arrays
Array Creation
Array Indexing
Array Slicing
Array Operations
Systems of Linear Equations
Summary
Review Questions
Chapter 6 Plotting with Matplotlib
Chapter 6 Plotting with Matplotlib
Introduction
What is Matplotlib?
Installing Matplotlib
Line Plots
Saving plots
Multi Line Plots
Bar Charts and Pie Charts
Error Bars
Histograms
Box Plots and Violin Plots
Scatter Plots
Plot annotations
Subplots
Plot Styles
Contour Plots
Quiver and Stream Plots
3D Surface Plots
Summary
Review Questions
Chapter 7 Functions and Modules
Chapter 7 Functions and Modules
Introduction
Why Functions?
First Function
Functions with Multiple Arguments
Functions with Default Arguments
Calling Functions from Other Files
Docstrings in Functions
Positional and Keyword Arguments
Summary
Review Questions
Chapter 8 If Else Try Except
Chapter 8 If Else Try Except
Introduction
User Input
Selection Statements
If statements
If Else Statements
Try-Except Statements
Flowcharts
Summary
Review Questions
Chapter 9 Loops
Chapter 9 Loops
Introduction
For Loops
While Loops
Break and Continue
Flowcharts Describing Loops
Summary
Review Questions
Chapter 10 Symbolic Math
Chapter 10 Symbolic Math
Introduction
SymPy
Installing SymPy
Defining Variables
Expressions and Substitutions
Equations
Solving Equations
Solving Two Equations for Two Unknows
Summary
Review Questions
Chapter 11 Python and External Hardware
Chapter 11 Python and External Hardware
Introduction
PySerial
Bytes and Unicode Strings
Controlling an LED with Python
Reading a Sensor with Python
Summary
Project Ideas
Chapter 12 MicroPython
Chapter 12 MicroPython
Introduction
What is MicroPython?
Installing MicroPython
The MicroPython REPL
Blinking a LED
Reading a Sensor
Uploading Code
Summary
Project Ideas
Appendix
Appendix
Contents
Reserved and Keywords in Python
ASCII Character Codes
Virtual Environments
NumPy Math Functions
Git and GitHub
LaTeX Math
Problem Solving with Python Book Construction
Contributions
Cover Artwork
About the Author
404 - Not found