Chapter 1 : Getting Started with Python
Why Python?
Python applications
Versions
Implementations of Python
Installation
Python interactive shell
System or environment variables
Setting environment variables in Windows
Writing some simple programs
Basic Python syntax
Comments in Python
Triple, double and single quotes
Python back slash
String inside the quotes
Escape sequence in Python
String concatenation
Formatted output
Indentation
Chapter 2 : Type Variables and Operators
Variables
Single assignment
Multiple assignment
Data types in Python
Numeric data types or numbers
Integers and long integers
Floating point numbers
Complex numbers
Boolean data type
String data types
American Standard Code for Information Interchange (ASCII) character sets
Conversion functions
Arithmetic expressions
Mixed mode arithmetic
Mixed Mode Conversion
Type conversions
Operators
Arithmetic operators
Comparison operators
Variants of assignment operator
Bitwise operators
Logical operators
Membership operators
Identity operators
Operator precedence
Chapter 3 : Strings
Python strings
The subscript operator
Slicing for substrings
Python string methods
String case methods
String strip methods
String split methods
String justify methods
String Boolean methods
String functions
Tuple
Creating an empty tuple
Creating tuple with elements
Indexing tuple
Slicing of tuple
Unpacking the items of tuples
Tuple functions
Operations of tuples
Chapter 4 : Lists
Creating a list
Creating a list with values
Unpacking list values
List operations
Accessing list values
Slicing the list
Updating the list
Deleting values from a list
Addition of Python lists
Multiplication of lists
in operator
List functions
len()
max ()
list ()
sorted ()
List methods
append ()
extend ()
Difference between append and extend.
count ()
index ()
insert()
remove()
pop()
reverse()
List comprehensions
Chapter 5 : Dictionary
Overview of dictionary
Operations on the dictionary
Accessing the values of dictionary
Deleting an item from the dictionary
Updating the values of the dictionary
Adding an item to the dictionary
Dictionary functions
len()
str()
max()
min()
dict()
Dictionary methods
copy()
get()
setdefault()
has_key()
keys()
values()
update()
items()
clear()
Python dictionary with for loop
Chapter 6 : Control Statements and Loops
Control statements
The if and if...else statement
The if...elif...else statement
Loops
Types of loops
Definite loop
Indefinite loop
The while True and break statement
The break statement
Nested loops
The continue and pass statements
The pass statement
Chapter 7 : Function and Scope of Variable
Categories of functions
Built-in functions
User-defined functions
Function definition
Calling a function
Function with arguments
Function with an argument and return type
Function with default argument
Function with variable length argument
Key-value pair as variable length argument
Pass by reference versus pass by value
Scope of variables
Memory management
Chapter 8 : Modules and Packages
Modules
The import statement
Locating Python modules
Compiled Python files
The Python package
Chapter 9 : File Handling and Exceptions
Reading text from a file
The read() method
The readline() method
The readlines() method
Writing text to a file
Pickling
Unpickling
Exceptions
The try statement with an except clause
Multiple exception blocks
The try...finally statement
The exception argument
Raising exceptions
User-defined exceptions
Chapter 10 : Collections
Collections
Counter
Update function
Usage of counters
Operations of Python collection counter
Deque
Populating deque
Deque consumption
Deque rotation
Ordered dictionary
Sorting of ordered dictionary based upon keys
Sorting of ordered dictionary based upon values
Default dictionary
Sample problem solved by the default dictionary - scenario one
Sample problem solved by the default dictionary - scenario two
Named tuple
Adding values and creating a dictionary
Chapter 11 : Class and Objects
Object-oriented programming overview
Key concepts
Creating a class
Instance variables
The __init__ method
Class variables
Class inheritance
Multiple inheritance
Multilevel inheritance
Overriding methods
Operator overloading
The class method
The static method
The private variable
Chapter 12 : Data Exploration in Python
Use packages like Panda, sciene kit, matplotlib, sklearn etc
Use of Data Frame
Create Excel files, JSON files, Web page
Customising Excel sheets
Read from Excel files, JSON files, Web page
Search data from web page
Create Graphs
Bar chart
Scatter chart
3D Charts
Kmeans
Train-Test methods
Create GUI apps
Project