Fundamentals of Python Programming
โ Scribed by Richard L. Halterman
- Publisher
- Southern Adventist University
- Year
- 2015
- Tongue
- English
- Leaves
- 430
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Table of Contents
The Context of Software Development
Software
Development Tools
Learning Programming with Python
Writing a Python Program
The Python Interactive Shell
A Longer Python program
Summary
Exercises
Values and Variables
Integer and String Values
Variables and Assignment
Identifiers
Floating-point Numbers
Control Codes within Strings
User Input
The eval Function
Controlling the print Function
String Formatting
Summary
Exercises
Expressions and Arithmetic
Expressions
Mixed Type Expressions
Operator Precedence and Associativity
Comments
Errors
Syntax Errors
Run-time Exceptions
Logic Errors
Arithmetic Examples
More Arithmetic Operators
Algorithms
Summary
Exercises
Conditional Execution
Boolean Expressions
Boolean Expressions
The Simple if Statement
The if/else Statement
Compound Boolean Expressions
The pass Statement
Floating-point Equality
Nested Conditionals
Multi-way Decision Statements
Conditional Expressions
Errors in Conditional Statements
Summary
Exercises
Iteration
The while Statement
Definite Loops vs. Indefinite Loops
The for Statement
Nested Loops
Abnormal Loop Termination
The break statement
The continue Statement
while/else and for/else
Infinite Loops
Iteration Examples
Computing Square Root
Drawing a Tree
Printing Prime Numbers
Insisting on the Proper Input
Summary
Exercises
Using Functions
Introduction to Using Functions
Standard Mathematical Functions
time Functions
Random Numbers
Importing Issues
Summary
Exercises
Writing Functions
Function Basics
Main Function
Parameter Passing
Function Examples
Better Organized Prime Generator
Command Interpreter
Restricted Input
Better Die Rolling Simulator
Tree Drawing Function
Floating-point Equality
Custom Functions vs. Standard Functions
Summary
Exercises
More on Functions
Global Variables
Default Parameters
Introduction to Recursion
Making Functions Reusable
Documenting Functions and Modules
Functions as Data
Lambda Expressions
Generators
Local Function Definitions
Summary
Exercises
Objects
Using Objects
String Objects
File Objects
Fraction Objects
Turtle Graphics
Graphics with tkinter Objects
Other Standard Python Objects
Object Mutability and Aliasing
Garbage Collection
Summary
Exercises
Lists
Using Lists
List Traversal
Building Lists
List Membership
List Assignment and Equivalence
List Bounds
Slicing
List Element Removal
Lists and Functions
List Methods
Prime Generation with a List
Command-line Arguments
List Comprehensions
Summary of List Creation Techniques
Lists vs. Generators
Summary
Exercises
Sorting and Searching
Sorting
Flexible Sorting
Faster Sorting
Search
Linear Search
Binary Search
Recursion Revisited
List Permutations
Randomly Permuting a List
Reversing a List
Summary
Exercises
Tuples, Dictionaries, and Sets
Tuples
Arbitrary Argument Lists
Dictionaries
Using Dictionaries
Counting with Dictionaries
Grouping with Dictionaries
Implementing Mathematical Graphs
Keyword Arguments
Sets
Set Quantification with all and any
Summary
Exercises
Handling Exceptions
Motivation
Common Standard Exceptions
Handling Exceptions
Handling Multiple Exceptions
The Catch-all Handler
Catching Exception Objects
The try Statement's Optional else Block
finally block
Exception Handling Scope
Raising Exceptions
Using Exceptions
Summary
Exercises
Custom Types
Circle Objects
Restricting Access to Members
Bank Account Objects
Stopwatch Objects
Automated Testing
Class Inheritance
Custom Exceptions
Summary
Exercises
Index
๐ SIMILAR VOLUMES
Master today's required computer science topics while preparing for further study with Lambert's FUNDAMENTALS OF PYTHON: FIRST PROGRAMS. This book's easygoing approach is ideal for readers with any type of background. The approach starts with simple algorithmic code and then scales into working with
In FUNDAMENTALS OF PYTHON: FIRST PROGRAMS, respected author Kenneth A. Lambert presents all of the important topics for a CS1 course while preparing your students to study additional languages. The book uses the Python programming language, which is both easy to learn for beginners and scales well t
In FUNDAMENTALS OF PYTHON: FIRST PROGRAMS, respected author Kenneth A. Lambert presents all of the important topics for a CS1 course while preparing the reader to study additional languages.<br>The book uses the Python programming language, which is both easy to learn for beginners and scales well t
<p>Computer programming is a skill that can bring great enjoyment from the creativity involved in designing and implementing a solution to a problem. This classroom-tested and easy-to-follow textbook teaches the reader how to program using Python, an accessible language which can be learned incremen
This easy-to-follow and classroom-tested textbook guides the reader through the fundamentals of programming with Python, an accessible language which can be learned incrementally. This revised and updated new edition will teach students how to recognize and apply abstract patterns in programming thr