Professional Documents
Culture Documents
Core-Module Python
Core-Module Python
What is Python?
Why python is popular
Setup Python Environment
Interactive mode
IDE mode
Familiar with CMD
Number
Strings
Lists
Dictionaries
Tuples
Sets
Operators in Python
1. What are operators in Python?
2. Arithmetic Operators
3. Comparison (Relational) Operators
4. Logical (Boolean) Operators
5. Bitwise Operators
6. Assignment Operators
7. Special Operators
o Identity Operator
o Membership Operator
Numeric Types
Numeric Type Basics
Numeric Literals
Built-in Numeric Tools
Numbers in Action
Variables and Basic Expressions
Numeric Display Formats
Comparisons: Normal and Chained
Division: Classic, Floor, and True
Integer Precision
Complex Numbers
Hex, Octal, Binary: Literals and Conversions
String Fundamentals
This Chapter’s Scope
Unicode: The Short Story
String Basics
String Literals
Single- and Double-Quoted Strings Are the Same
Escape Sequences Represent Special Characters
Raw Strings Suppress Escapes
Triple Quotes Code Multiline Block Strings
Strings in Action
Basic Operations
Indexing and Slicing
String Conversion Tools
Changing Strings I
String Methods
Method Call Syntax
Methods of Strings
Tuples
Tuples in Action
Why Lists and Tuples?
Records Revisited: Named Tuples
Sets
Sets in Action
Arguments
Argument-Passing Basics
Arguments and Shared References
Avoiding Mutable Argument Changes
Simulating Output Parameters and Multiple Results
Special Argument-Matching Modes
Argument Matching Basics
Argument Matching Syntax
The Gritty Details
Keyword and Default Examples
Arbitrary Arguments Examples
Python 3.X Keyword-Only Arguments
Module 04 Modules and Package
Modules: The Big Picture
Why Use Modules?
Python Program Architecture
How to Structure a Program
Imports and Attributes
Standard Library Modules
How Imports Work
1. Find I
2. Compile It (Maybe)
3. Run It
Module Coding Basics
Module Creation
Filenames
Other Kinds of Modules
Module Usage
The import Statement
The from Statement
The from * Statement
Imports Happen Only Once
import and from Are Assignments
import and from Equivalence
Potential Pitfalls of the from Statement
Module Namespaces
Files Generate Namespaces
Namespace Dictionaries: __dict__
Attribute Name Qualification
Imports Versus Scopes
Namespace Nesting 699 Reloading Modules
Module Packages
Import Basics
Packages and Search Path Settings
Package __init__.py Files
Package Import Example
from Versus import with Packages
Why Use Package Imports?
Operator Overloading
The Basics
Constructors and Expressions: __init__ and __sub__
Common Operator Overloading Methods
open() operation
read() operation
wirte() Operation
append() Operation
Data Science
numpy.py
pandas.py
Data Visualization
matplotlib.py
Database
MySQL
SQLite
Working with JSON and CSV file
Introduction of Django
Introduction of Tkinter