Core Python Programming

Author : Dr. R. Nageswara Rao
Price : Rs 599.00
ISBN 13 : 9789351199427
ISBN 10 : 9351199428
Pages : 740
Type : Paperbound

Core Python Programming

Details

This book covers almost all the concepts of Python in an easy and simple language. The reader starts at the basic level and goes up to the higher levels as he/she gains knowledge of the concepts. The book first explains the basic concepts of Python such as datatypes, variables, loops, etc. and then discusses arrays, strings, functions lists, tuples, dictionaries, stacks, linked lists, queues, etc. This book explains each and every concept with the help of a running program and also describes the logic behind the program. As this book contains hundreds of programs, it can be used by students to solve programs generally asked in their theory and lab examinations as part of their courses like BCA, MCA, BE, and B.

Chapter 1: Introduction to Python

  • Python
  • Features of Python
  • Execution of a Python Program
  • Viewing the Byte Code
  • Flavors of Python
  • Python Virtual Machine (PVM)
  • Frozen Binaries
  • Memory Management in Python
  • Garbage Collection in Python
  • Comparisons between C and Python
  • Comparisons between Java and Python
  • Points to Remember

 

Chapter 2: Writing Our First Python Program

  • Installing Python for Windows
  • Testing the Installation in Windows 8
  • Installing numpy
  • Setting the Path to Python
  • Writing Our First Python Program
  • Executing a Python Program
  • Getting Help in Python
  • Getting Python Documentation Help
  • Reopening the Python Program in IDLE
  • Points to Remember

 

Chapter 3: Datatypes in Python

  • Comments in Python
  • Docstrings
  • How Python Sees Variables
  • Datatypes in Python
  • Built-in datatypes
  • bool Datatype
  • Sequences in Python
  • Sets
  • Literals in Python
  • Determining the Datatype of a Variable
  • What about Characters
  • User-defined Datatypes
  • Constants in Python
  • Identifiers and Reserved words
  • Naming Conventions in Python
  • Points to Remember

 

Chapter 4: Operators in Python

  • Operator
  • Arithmetic Operators
  • Using Python Interpreter as Calculator
  • Assignment Operators
  • Unary Minus Operator
  • Relational Operators
  • Logical Operators
  • Boolean Operators
  • Bitwise Operators
  • Membership Operators
  • Identity Operators
  • Operator Precedence and Associativity
  • Mathematical Functions
  • Using IDLE Window
  • Using Command Line Window
  • Executing at System Prompt
  • Points to Remember

 

Chapter 5: Input and Output

  • Output statements
  • Input Statements
  • Command Line Arguments
  • Points to Remember

 

Chapter 6: Control Statements

  • Control Statements
  • The if Statement
  • A Word on Indentation
  • The if … else Statement
  • The if … elif … else Statement
  • The while Loop
  • The for Loop
  • Infinite Loops
  • Nested Loops
  • The else Suite
  • The break Statement
  • The continue Statement
  • The pass Statement
  • The assert Statement
  • The return Statement
  • Points to Remember

 

Chapter 7: Arrays in Python

  • Array
  • Advantages of Arrays
  • Creating an Array
  • Importing the Array Module
  • Indexing and Slicing on Arrays
  • Processing the Arrays
  • Types of Arrays
  • Working with Arrays using numpy
  • Creating Arrays using array()
  • Creating Arrays using linspace
  • Creating Arrays using logspace
  • Creating Arrays using arange() Function
  • Creating Arrays using zeros() and ones() Functions
  • Mathematical Operations on Arrays
  • Comparing Arrays
  • Aliasing the Arrays
  • Viewing and Copying Arrays
  • Slicing and Indexing in numpy Arrays
  • Dimensions of Arrays
  • Attributes of an Array
  • The reshape() Method
  • The flatten() Method
  • Working with Multi-dimensional Arrays
  • Indexing in Multi-dimensional Arrays
  • Slicing the Multi-dimensional Arrays
  • Matrices in numpy
  • Getting Diagonal Elements of a Matrix
  • Finding Maximum and Minimum Elements
  • Finding Sum and Average of Elements
  • Products of Elements
  • Sorting the Matrix
  • Transpose of a Matrix
  • Matrix Addition and Multiplication
  • Random Numbers
  • Points to Remember

 

Chapter 8: Strings and Characters

  • Creating Strings
  • Length of a String
  • Indexing in Strings
  • Slicing the Strings
  • Repeating the Strings
  • Concatenation of Strings
  • Checking Membership
  • Comparing Strings
  • Removing Spaces from a String
  • Finding Sub Strings
  • Counting Substrings in a String
  • Strings are Immutable
  • Replacing a String with another String
  • Splitting and Joining Strings
  • Changing Case of a String
  • Checking Starting and Ending of a String
  • String Testing Methods
  • Formatting the Strings
  • Working with Characters
  • Sorting Strings
  • Searching in the Strings
  • Finding Number of Characters and Words
  • Inserting Sub String into a String
  • Points to Remember

 

Chapter 9: Functions

  • Difference between a Function and a Method
  • Defining a Function
  • Calling a Function
  • Returning Results from a Function
  • Returning Multiple Values from a Function
  • Functions are First Class Objects
  • Pass by Object Reference
  • Formal and Actual Arguments
  • Positional Arguments
  • Keyword Arguments
  • Default Arguments
  • Variable Length Arguments
  • Local and Global Variables
  • The Global Keyword
  • Passing a Group of Elements to a Function
  • Recursive Functions
  • Anonymous Functions or Lambdas
  • Function Decorators
  • Generators
  • Structured Programming
  • Creating our Own Modules in Python
  • The Special Variable __name__
  • Points to Remember

 

Chapter 10: Lists and Tuples

  • List
  • Creating Lists using range() Function
  • Updating the Elements of a List
  • Concatenation of Two Lists
  • Repetition of Lists
  • Membership in Lists
  • Aliasing and Cloning Lists
  • Methods to Process Lists
  • Finding Biggest and Smallest Elements in a List
  • Sorting the List Elements
  • Number of Occurrences of an Element in the List
  • Finding Common Elements in Two Lists
  • Storing Different Types of Data in a List
  • Nested Lists
  • Nested Lists as Matrices
  • List Comprehensions
  • Tuples
  • Creating Tuples
  • Accessing the Tuple Elements
  • Basic Operations on Tuples
  • Functions to Process Tuples
  • Nested Tuples
  • Inserting Elements in a Tuple
  • Modifying Elements of a Tuple
  • Deleting Elements from a Tuple
  • Points to Remember

 

Chapter 11: Dictionaries

  • Operations on Dictionaries
  • Dictionary Methods
  • Using for Loop with Dictionaries
  • Sorting the Elements of a Dictionary using Lambdas
  • Converting Lists into Dictionary
  • Converting Strings into Dictionary
  • Passing Dictionaries to Functions
  • Ordered Dictionaries
  • Points to Remember

 

Chapter 12: Introduction to Oops

  • Problems in Procedure Oriented Approach
  • Specialty of Python Language
  • Features of Object Oriented Programming System (OOPS)
  • Points to Remember

 

Chapter 13: Classes and Objects

  • Creating a Class
  • The Self Variable
  • Constructor
  • Types of Variables
  • Namespaces
  • Types of Methods
  • Passing Members of One Class to Another Class
  • Inner Classes
  • Points to Remember

 

Chapter 14: Inheritance and Polymorphism

  • Constructors in Inheritance
  • Overriding Super Class Constructors and Methods
  • The super() Method
  • Types of Inheritance
  • Method Resolution Order (MRO)
  • Polymorphism
  • Duck Typing Philosophy of Python
  • Operator Overloading
  • Method Overloading
  • Method Overriding
  • Points to Remember

 

Chapter 15: Abstract Classes and Interfaces

  • Abstract Method and Abstract Class
  • Interfaces in Python
  • Abstract Classes vs. Interfaces
  • Points to Remember

 

Chapter 16: Exceptions

  • Errors in a Python Program
  • Exceptions
  • Exception Handling
  • Types of Exceptions
  • The Except Block
  • The assert Statement
  • User-Defined Exceptions
  • Logging the Exceptions
  • Points to Remember

 

Chapter 17: Files in Python

  • Files
  • Types of Files in Python
  • Opening a File
  • Closing a File
  • Working with Text Files Containing Strings
  • Knowing Whether a File Exists or Not
  • Working with Binary Files
  • The with Statement
  • Pickle in Python
  • The seek() and tell() Methods
  • Random Accessing of Binary Files
  • Random Accessing of Binary Files using mmap
  • Zipping and Unzipping Files
  • Working with Directories
  • Running Other Programs from Python Program
  • Points to Remember

 

Chapter 18: Regular Expressions in Python

  • Regular Expressions
  • Sequence Characters in Regular Expressions
  • Quantifiers in Regular Expressions
  • Special Characters in Regular Expressions
  • Using Regular Expressions on Files
  • Retrieving Information from a HTML File
  • Points to Remember

 

Chapter 19: Data Structures in Python

  • Linked Lists
  • Stacks
  • Queues
  • Deques
  • Points to Remember

 

Chapter 20: Date and Time

  • The epoch
  • Date and Time Now
  • Combining Date and Time
  • Formatting Dates and Times
  • Finding Durations using ‘timedelta’
  • Comparing Two Dates
  • Sorting Dates
  • Stopping Execution Temporarily
  • Knowing the Time taken by a Program
  • Working with Calendar Module
  • Points to Remember

 

Chapter 21: Threads

  • Single Tasking
  • Multitasking
  • Differences between a Process and a Thread
  • Concurrent Programming and GIL
  • Uses of Threads
  • Creating Threads in Python
  • Thread Class Methods
  • Single Tasking using a Thread
  • Multitasking using Multiple Threads
  • Thread Synchronization
  • Deadlock of Threads
  • Avoiding Deadlocks in a Program
  • Communication between Threads
  • Thread Communication using nofity() and wait() Methods
  • Thread Communication using a Queue
  • Daemon Threads
  • Points to Remember

 

Chapter 22: Graphical User Interface

  • GUI in Python
  • The Root Window
  • Fonts and Colors
  • Working with Containers
  • Canvas
  • Frame
  • Widgets
  • Button Widget
  • Arranging Widgets in the Frame
  • Label Widget
  • Message Widget
  • Text Widget
  • Scrollbar Widget
  • Checkbutton Widget
  • Radiobutton Widget
  • Entry Widget
  • Spinbox Widget
  • Listbox Widget
  • Menu Widget
  • Points to Remember

 

Chapter 23: Networking in Python

  • Protocol
  • Sockets
  • Knowing IP Address
  • URL
  • Reading the Source Code of a Web Page
  • Downloading a Web Page from Internet
  • Downloading an Image from Internet
  • A TCP/IP Server
  • A TCP/IP Client
  • A UDP Server
  • A UDP Client
  • File Server
  • File Client
  • Two-Way Communication between Server and Client
  • Sending a Simple Mail
  • Points to Remember

 

Chapter 24: Python’s Database Connectivity

  • DBMS
  • Advantages of a DBMS over Files
  • Types of Databases Used with Python
  • Installation of MySQL Database Software
  • Setting the Path to MySQL Server
  • Verifying MySQL in the Windows Operating System
  • Installing MySQL Connector
  • Verifying the Connector Installation
  • Working with MySQL Database
  • Using MySQL from Python
  • Retrieving All Rows from a Table
  • Inserting Rows into a Table
  • Deleting Rows from a Table
  • Updating Rows in a Table
  • Creating Database Tables through Python
  • Installation of Oracle 11g
  • Verifying Oracle Installation in Windows Operating System
  • Installing Oracle Database Driver
  • Verifying the Driver Installation
  • Working with Oracle Database
  • Using Oracle Database from Python
  • Stored Procedures
  • Points to Remember

 

Students who are learning Core Python as a subject in their curriculum. Software developers.

 

Dr. R. Nageswara Rao, author of the best seller ‘Core Java – An Integrated Approach’ and ‘Core C’ comes out with his remarkable new book ‘Core Python’. His aim in writing this book is not only to teach Python to the college students but also to provide a reference to the professionals. Dr. R. Nageswara Rao is associated with teaching Computer Science since 1993. He has worked in various colleges as Head of the Department, Dept. of Computers and as a freelance developer for some time for a couple of organizations. He taught C and C++ till the year 2004 and since then, he is involved in teaching Java. At present, he is teaching Java and Python in Hyderabad, Telangana, India. Since 1998, Mr. Rao was on the editorial board of Computer Vignanam, a widely circulated monthly magazine published in Telugu.