An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
Index: Core and Advanced Python:
1. Python Overview:
● History of Python
● Python Features
▪ Interpreted
▪ Platform Independent
▪ Free and Open Source
▪ High-level Language
▪ Easy-to-learn and read
▪ GUI Programming
▪ Databases
● Differences between Python 2.x and Python 3.x
▪ Division operator
▪ print function
▪ Unicode
▪ xrange
▪ Error Handling
▪ _future_ module
● Python Editor
▪ Text editor
▪ Full Python IDE
▪ Jupyter NoteBook
2. Environment Setup
● Installing Python
▪ Window Installation
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ Unix and Linux Installation
▪ Mac OS Installation
● Setting up PATH
▪ Setting path at Windows
▪ Setting path at Unix/Linux
3. Basic Python Syntax
● Check Python Version
● Write Python Programming “Hello Python”
● Keywords
▪ Iskeyword
▪ kwlist
● Python Identifiers
● Lines and Multi-Line Statements
● Quotation in Python
● Comments in Python
4. Variable
● Assigning Values to Variables
● Multiple Assignment
● Standard Data Types
▪ Numbers
▪ String
▪ List
▪ Tuple
▪ Dictionary
● Data Type Conversion
▪ int(x [,base])
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ long(x [,base] )
▪ float(x)
▪ complex(real [,imag])
▪ str(x)
▪ repr(x)
▪ eval(str)
▪ tuple(s)
▪ list(s)
▪ set(s)
▪ dict(d)
▪ chr(x)
▪ unichr(x)
▪ ord(x)
▪ hex(x)
▪ oct(x)
● Global and Local Variables in Python
● Packing and Unpacking Arguments in Python
● End parameter
5. Numbers
● Python Numerical types
▪ int (signed integers)
▪ long (long integers )
▪ float (floating point real values)
▪ complex (complex numbers)
● Mathematical Functions
▪ abs(x)
▪ ceil(x)
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ cmp(x, y)
▪ exp(x)
▪ fabs(x)
▪ floor(x)
▪ log(x)
▪ log10(x)
▪ max(x1, x2,...)
▪ min(x1, x2,...)
▪ modf(x)
▪ pow(x, y)
▪ round(x [,n])
▪ sqrt(x)
● Random Number Functions
▪ choice(seq)
▪ randrange ([start,] stop [,step])
▪ random()
▪ seed([x])
▪ shuffle(lst)
▪ uniform(x, y)
6. Strings
● Accessing Values in Strings
● Updating Strings
● Escape Characters
● \a,\b,\c-x,\r,\t
● String Special Operators
● +,*,[],[:]
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
● String Formatting Operator
● %f,%c,%d,%s
● Triple Quotes
▪ capitalize()
7. Operators
● Arithmetic Operators
▪ + Addition
▪ - Subtraction
▪ * Multiplication
▪ / Division
▪ % Modulus
▪ ** Exponent
▪ // floor Division
● Comparison (Relational) Operators
▪ ==
▪ !=
▪ >
▪ <
▪ >=
▪ <=
● Assignment Operators
▪ =
▪ += Add AND
▪ -= Subtract AND
▪ *= Multiply AND
▪ /= Divide AND
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ %= Modulus AND
▪ **= Exponent AND
▪ //= Floor Division
● Logical Operators
● AND
● OR
● Bitwise Operators
● &(AND)
● |(OR)
● <<(Left Shift)
● >>(Right Shift)
● Membership Operators
▪ in
▪ not in
● Identity Operators
▪ Is
▪ Is not
● Ternary Operator in Python
8. Loop and Control Statement
● if statement
● else statement
● elif statement
● Loop Control Statements
● While loop
● For loop
● Loop Control Statements
▪ Break Statement
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ Continue Statement
▪ Pass Statement
9. Lists
● Accessing Values in Lists
● Updating Lists
● Delete List Elements
● Basic List Operations
▪ len([1, 2, 3]) # Length
▪ [1, 2, 3] + [4, 5, 6] # Concatenation
▪ ['Hi!'] * 4 # Repetition
▪ 3 in [1, 2, 3] #Membership
▪ for x in [1, 2, 3]: print x, #Iteration
● Indexing, Slicing, and Matrixes
▪ Indexing
▪ Slicing
▪ Matrixes
● Built-in List Functions & Methods
● A) Function
▪ len(list)
▪ max(list)
▪ min(list
▪ list(seq)
● B) Methods with Description
▪ [Link](obj)
▪ [Link](obj)
▪ [Link](seq)
▪ [Link](obj)
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ [Link](index, obj)
▪ [Link](obj=list[-1])
▪ [Link](obj)
▪ [Link]()
▪ [Link]([func])
10. Tuples
● Accessing Values in Tuples
● Updating Tuples
● Delete Tuple Elements
● Basic Tuples Operations
▪ len([1, 2, 3]) # Length
▪ [1, 2, 3] + [4, 5, 6] # Concatenation
▪ ['Hi!'] * 4 # Repetition
▪ 3 in [1, 2, 3] #Membership
▪ for x in [1, 2, 3]: print x, #Iteration
● Indexing, Slicing, and Matrixes
▪ Indexing
▪ Slicing
▪ Matrixes
● Built-in List Functions & Methods
o Function
▪ cmp(list1, list2)
▪ len(list)
▪ max(list)
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ min(list
▪ tuple(seq)
11 . Dictionary
● Accessing Values in Dictionary
● Updating Dictionary
● Delete Dictionary Elements
● Built-in Dictionary Functions
▪ cmp(dict1, dict2)
▪ len(dict)
▪ str(dict)
▪ type(variable)
● Built-in Dictionary Method
▪ [Link]()
▪ [Link]()
▪ [Link]()
▪ [Link](key, default=None)
▪ dict.has_key(key)
▪ [Link]()
▪ [Link]()
▪ [Link](key, default=None)
▪ [Link](dict2)
▪ [Link]()
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
11. DateTime
● Getting current time
● Getting formatted time
● The DateTime Module
▪ [Link]()
▪ [Link]
▪ [Link]
▪ [Link]
▪ [Link]
▪ [Link]
▪ [Link]
▪ [Link]
▪ [Link]
▪ [Link]
12. Functions
● Defining a Function
● Syntax & Example
● Calling a Function
● Pass by Reference
● Function Arguments
▪ Required arguments
▪ Keyword arguments
▪ Default arguments
▪ Variable-length arguments
● The Anonymous Functions
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
13. Modules
● Defining a Module
● import Statement
● from...import Statement
● from...import * Statement
● Executing Modules as Scripts
● Locating Modules
14. Files I/O
● Printing to the Screen
● Reading Keyboard Input
● The open Function
▪ file_name
▪ access_mode
▪ buffering
▪ Mode & Description
❖ r,rb,r+,x
● The file Object Attributes
▪ [Link]
▪ [Link]
▪ [Link]
● Reading and Writing Files
▪ write() Method
▪ read() Method
▪ File Positions
● Renaming and Deleting Files
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
▪ rename() Method
▪ remove() Method
● Directories in Python
▪ mkdir() Method
▪ chdir() Method
▪ rmdir() Method
15. Exceptions Handling
● Defining an Exceptions
● Syntax & Example
● try-finally Clause
● Built-in Exceptions in Python
16. Object Oriented
• Overview of OOP Terminology
• Class
• Creating Classes
• Accessing Attributes
• Built-In Class Attributes
• __init__
• self
• Class Variable
• Data Member
• Function overloading
• Instance variable
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
• Inheritance
• Instance
• Creating Instance Objects
• Instantiation
• Method
• Object
18. Sending Mail
• Objective
• What is SMTP Server?
• Python Send Email Using smtplib Module
• How Does SMTP Work?
• How to Send HTML Email in Python?
• Conclusion
19. Multithreading
• Python Multithreading
• Introduction to Python Multithreading
• Functions in Python Multithreading
20. Regular Expressions
• Defining a Regular Expressions
• Metacharacters
• \ Used to drop the special meaning of character
• [] Represent a character class
• ^ Matches the beginning
• $ Matches the end
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
• . Matches any character except newline
• ? Matches zero or one occurrence.
• | Means OR (Matches with any of the characters
• separated by it.
• * Any number of occurrences (including 0 occurrences)
• + One ore more occurrences
• {} Indicate number of occurrences of a preceding RE
• to match.
• () Enclose a group of REs
• Rules for a Match
• Functions
• match()
• search()
• split()
• sub()
• compile()
21. Database Access
• Objective
• Python Database Access
• Advantages of Database Programming with Python
• PyMySQL and Installation
• Connecting Python Database
• How to Create Python Database
• How to Connect Python Database
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
• Creating Tables in Python Database
• Inserting a Record in Python Database
• Reading Records in Python Database
• Updating Records in Python Database
• Deleting Records in Python Database
• Commit, Rollback, and Disconnecting
• Errors in Transactions
Django:-
1. Introduction to Django
o History of Django
o Design ideology
1. Loosely Coupled
2. Less Coding
3. Don't Repeat Yourself (DRY)
4. Fast Development
5. Clean Design
o Advantages of Django
1. Object-Relational Mapping (ORM) Support
2. Multilingual Support
3. Framework Support
4. Administration GUI
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
5. Development Environment
o Why Django?
o Installation
1. Windows Installation
2. Setup Project
a. Create new project
b. Django Apps
c. Write a program in django “Hello, World!”
3. Django Admin Panel
a. Introduction to Django Admin
b. CRUD Operation inside Admin Interface
4. Model Layer
a. Models
i. Introduction to models
ii. Field Types
iii. Meta options
iv. Model Class
b. QuerySets
i. Executing queries
ii. Queryset Method Reference
c. Migrations
i. Introduction to migrations
ii. Writing Migrations
5. View Layer
a. The basics
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999
An ISO 9001:2008 Certified Company
CNC WEB WORLD
Let’s execute the Imaginations
IT Training & Development
i. URLConfs
ii. View Functions
b. Request / Response objects
6. Template Layer
a. Built in tags and filters
b. Custom tags and filters
7. Forms
a. Built in fields and widgets
b. Forms for models
c. Customizing validation
d. File Upload Controls
8. Authentication
a. Sign Up
b. Logout
c. Displaying Menu For Authenticated Users
d. Login
e. Password Reset
f. Password Change View
9. Class Based Views
a. Function-Based Views (FBV)
b. Class-Based Views (CBV)
c. Generic Class-Based Views (GCBV)
10. Session, Cookies
11. Security
12. Deployment
13. Performance and Optimization
Off No 5, 1st Floor, GoodWill Arcade, Sector 10, Nerul(w) Navi Mumbai,
Call us : 74003 32999