Book description
"Python Programming introduces one of the most rapidly evolving and preferred programming language using the concept of modularity. One of the highlights of the text is its in-depth treatment of basic concepts.Table of contents
- Cover
- Title
- Foreword
- Preface
- About the Authors
- 1. Python Programming: An Introduction
-
2. Functions
- 2.1 Built-in Functions
- input Function
- eval Function
- Composition
- print Function
- type Function
- round Function
- Type Conversion
- min and max Functions
- pow Function
- Random Number Generation
- Functions from math Module
- Complete List of Built-in Functions
- 2.2 Function Definition and Call
- Fruitful Functions vs Void Functions
- Function help
- Default Parameter Values
- Keyword Arguments
- 2.3 Importing User-defined Module
- 2.4 Assert Statement
- 2.5 Command Line Arguments
- Summary
- Exercises
-
3. Control Structures
- 3.1 if Conditional Statement
- General Form of if Conditional Statement
- Conditional Expression
- General Form of if-else Conditional Statement
- General Form of if-elif-else Conditional Statement
- Nested if-elif-else Conditional Statement
- 3.2 Iteration (for and while Statements)
- 3.2.1 for Loop
- General Format of for Statement
- 3.2.2 while Loop
- General Format of while Statement
- Infinite Loops
- 3.2.3 while Statement vs. for Statement
- 3.2.4 Example: To Print Some Pictures
- 3.2.5 Nested Loops
- 3.2.6 break, continue, and pass Statements
- 3.2.7 Example: To Compute sin(x)
- 3.2.8 else Statement
- Summary
- Exercises
- 4. Debugging
- 5. Scope
-
6. Strings
- 6.1 Strings
- 6.1.1 Slicing
- 6.1.2 Membership
- 6.1.3 Built-in Functions on Strings
- Function count
- Functions find and rfind
- Functions capitalize, title, lower, upper, and swapcase
- Functions islower, isupper, and istitle
- Function replace
- Functions strip, lstrip, and rstrip
- Functions split and partition
- Function join
- Functions isspace, isalpha, isdigit, and isalnum
- Function startswith and endswith
- Functions encode and decode
- List of Functions
- 6.2 String Processing Examples
- 6.2.1 Counting the Number of Matching Characters in a Pair of Strings
- 6.2.2 Counting the Number of Common Characters in a Pair of Strings
- 6.2.3 Reversing a String
- 6.3 Pattern Matching
- 6.3.1 Some Important Definitions
- Summary
- Exercises
-
7. Mutable and Immutable Objects
- 7.1 Lists
- 7.1.1 Summary of List Operations
- 7.1.2 Function list
- 7.1.3 Functions append, extend, count, remove, index, pop, and insert
- 7.1.4 Function insert
- 7.1.5 Function reverse
- 7.1.6 Functions sort and reverse
- 7.1.7 List Functions
- 7.1.8 List Comprehension
- 7.1.9 Lists as Arguments
- 7.1.10 Copying List Objects
- 7.1.11 map, reduce, and filter Operations on a Sequence
- 7.2 Sets
- 7.2.1 Set Functions add, update, remove, pop, and clear
- 7.2.2 Set Functions union, intersection, difference, and symmetric_difference
- 7.2.3 Function copy
- 7.2.4 Subset and Superset Test
- 7.2.5 List of Functions
- 7.2.6 Finding Common Factors
- 7.2.7 Union and Intersection Operation on Lists
- 7.3 Tuples
- 7.3.1 Summary of Tuple Operations
- 7.3.2 Functions tuple and zip
- 7.3.3 Functions count and index
- 7.4 Dictionary
- 7.4.1 Dictionary Operations
- 7.4.2 Deletion
- 7.4.3 Function get
- 7.4.4 Function update
- 7.4.5 Function copy
- 7.4.6 List of Functions
- 7.4.7 Inverted Dictionary
- Summary
- Exercises
-
8. Recursion
- 8.1 Recursive Solutions for Problems on Numeric Data
- 8.1.1 Factorial
- Iterative Approach
- Recursive Approach
- 8.1.2 Fibonacci Sequence
- Iterative Approach
- Recursive Approach
- 8.2 Recursive Solutions for Problems on Strings
- 8.2.1 Length of a String
- 8.2.2 Reversing a String
- 8.2.3 Palindrome
- 8.3 Recursive Solutions for Problems on Lists
- 8.3.1 Flatten a List
- 8.3.2 Copy
- 8.3.3 Deep Copy
- 8.3.4 Permutation
- 8.4 Problem of Tower of Hanoi
- Summary
- Exercises
- 9. Files and Exceptions
- 10. Classes I
-
11. Classes II
- 11.1 Polymorphism
- 11.1.1 Operator Overloading
- Comparing Dates
- 11.1.2 Function Overloading
- 11.2 Encapsulation, Data Hiding, and Data Abstraction
- 11.3 Modifier and Accessor Methods
- 11.4 Static Method
- 11.5 Adding Methods Dynamically
- 11.6 Composition
- 11.7 Inheritance
- 11.7.1 Single Inheritance
- Scope Rule
- Extending Scope of int Class Using a User Defined Class
- 11.7.2 Hierarchical Inheritance
- 11.7.3 Multiple Inheritance
- 11.7.4 Abstract Methods
- 11.7.5 Attribute Resolution Order for Inheritance
- 11.8 Built-in Functions for Classes
- Summary
- Exercises
- 12. List Manipulation
- 13. Data Structures I: Stack and Queues
-
14. Data Structures II: Linked Lists
- 14.1 Introduction
- 14.2 Insertion and Deletion at the Beginning of a Linked List
- 14.3 Deleting a Node with a Particular Value from a Linked List
- 14.4 Traversing a Linked List
- 14.5 Maintaining Sorted Linked List While Inserting
- 14.6 Stack Implementation Using Linked List
- 14.7 Queue Implementation Using Linked List
- Summary
- Exercises
- 15. Data Structures III: Binary Search Trees
- 16. More on Recursion
-
17. Graphics
- 17.1 2D Graphics
- 17.1.1 Point and Line
- Axis, Title, and Label
- Plotting Multiple Functions in the Same Figure
- Multiple Plots
- Saving Figure
- 17.1.2 Histogram and Pi Chart
- 17.1.3 Sine and Cosine Curves
- 17.1.4 Graphical Objects: Circle, Ellipse, Rectangle, Polygon, and Arrow
- Circle
- Ellipse
- Rectangle
- Polygon
- Arrow
- 17.2 3D Objects
- Box
- Sphere
- Ring
- Cylinder
- Arrow
- Cone
- Curve
- 17.3 Animation – Bouncing Ball
- Summary
- Exercises
-
18. Applications of Python
- 18.1 Collecting Information from Twitter
- Open Authentication
- An Example – Collecting User Information
- Collecting Followers, Friends, and Tweets of a User
- Collecting Tweets Having Specific Words
- 18.2 Sharing Data Using Sockets
- Client-Server Communication on the Same Machine – A Simple Example
- An Echo Server
- Accessing Web Data (Downloading a Pdf File)
- 18.3 Managing Databases Using Structured Query Language (SQL)
- 18.3.1 Database Concepts
- 18.3.2 Creating Database and Tables
- 18.3.3 Inserting Data into Table
- 18.3.4 Retrieving Data from Table
- 18.3.5 Updating Data in a Table
- 18.3.6 Deleting Data from Table/Deleting Table
- 18.4 Developing Mobile Application for Android
- 18.4.1 A Simple Application Containing Registration Interface
- 18.4.2 Tic-Tac-Toe Game
- 18.4.3 Running Kivy Applications on Android
- 18.5 Integrating Java with Python
- 18.5.1 Accessing Java Collections and Arrays in Python
- 18.5.2 Converting Python Collections to Java Collections
- 18.5.3 Invoking a Parameterized Java Method from Python
- 18.5.4 Invoking Parameterized Python Method from Java
- 18.6 Python Chat Application Using Kivy and Socket Programming
- Summary
- Exercises
- Index
- Colour Illustrations
- copyright
Product information
- Title: Python Programming: A modular approach
- Author(s):
- Release date: January 2017
- Publisher(s): Pearson Education India
- ISBN: None
You might also like
book
Modular Programming with Python
Introducing modular techniques for building sophisticated programs using Python About This Book The book would help …
book
Python Programming Blueprints
How to build useful, real-world applications in the Python programming language About This Book Deliver scalable …
video
Python Programming
"Python is the future of artificial intelligence and machine learning."—Adrian Rosebrock, author. Python is the programming …
book
Interpretable Machine Learning with Python
A deep and detailed dive into the key aspects and challenges of machine learning interpretability, complete …