Professional Documents
Culture Documents
DEMO LAB
Chapter 1
1
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Trainer Profile
Work Experience : (Currently Working in CANADA with 6 Years of Experience in MNC as a Network Consultant , Network Engineer and network
deployment Engineer)
Trained More than 35000 people CCNA, CCNP (R&S) and CCNA ,CCNP (SP), CCNA, CCNP (Enterprise), Security, AWS, Python and SDWAN)
Certificate Examinations
• CCIE (RS – Written Certified)
• CCNP Certified (Cisco Certified Network Professional) (Cisco ID- CSCO12744986) (R & S).
• CCNA Certified (Cisco Certified Network Associate) (Cisco ID- CSCO12744986) (R & S).
• CCNP Enterprise Certified.
• CCNA Enterprise Certified.
• CCNP Security Certified.
• CCNA Security Certified.
• AWS Solution Architect Professional Certified.
Academic
•I secured the first place in M.Tech Computer Engineering. (Gold Medalist: University First)
•I secured the first place in BE (Information Technology) from GTU.
2
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Who can learn Python
• If you are from technical background Like Computer Engineering then it is very
easy for you to learn python.
• If you know any other programming language like C, C++ or Java then it is again
very easy to understand python.
• If you are from a non-technical background then also you can learn but you have
to start from basics.
• This syllabus is designed in such a way that any beginner can learn the python.
• People are talking about automation python, but for that you must have a strong
command on basic python concept then and only then you can create a long
script for automation.
• Yes, you can do automation with python, but before that you have to learn core
python.
3
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
Chapter 1 – Introduction
• History
• Features
• Setting up path
• Working with Python
• Basic Syntax
• Variable and Data Types
• Operator
4
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
5
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
Chapter 3 - Looping
• For
• While
• Nested loops
6
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
7
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
8
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
Chapter 6 - Lists
• Introduction
• Accessing list
• Operations
• Working with lists
• Function and Methods
9
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
Chapter 7 - Tuple
• Introduction
• Accessing tuples
• Operations
• Working
• Functions and Methods
10
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
Chapter 8- Dictionaries
• Introduction
• Accessing values in dictionaries
• Working with dictionaries
• Properties
• Functions
11
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
Chapter 9- Functions
• Defining a function
• Calling a function
• Types of functions
• Function Arguments
• Anonymous functions
• Global and local variables
12
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
Chapter 10 - Modules
• Importing module
• Math module
• Random module
• Packages
• Composition
13
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
14
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
15
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
16
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Core Python Syllabus
17
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON INTRODUCTION
18
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON INTRODUCTION
19
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON FEATURES
20
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON FEATURES
4) Cross-platform Language
Python can run equally on different platforms such as Windows, Linux, Unix and
Macintosh etc. So, we can say that Python is a portable language.
5) Free and Open Source
Python language is freely available at offical web address.The source-code is also
available. Therefore it is open source.
6) Object-Oriented Language
Python supports object oriented language and concepts of classes and objects
come into existence.
7) Extensible
It implies that other languages such as C/C++ can be used to compile the code and
thus it can be used further in our python code. 21
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON FEATURES
22
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON HISTORY
23
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON APPLICATIONS AREA
Python is known for its general purpose nature that makes it applicable in almost
each domain of software development. Python as a whole can be used in
anysphere of development.
Here, we are specifying applications areas where python can be applied.
1) Web Applications
We can use Python to develop web applications. It provides libraries to handle
internet protocols such as HTML and XML, JSON, Email processing, request,
beautifulSoup, Feedparser etc. It also provides Frameworks such as Django,
Pyramid, Flask etc to design and develop web based applications. Some important
developments are: PythonWikiEngines, Pocoo, Python BlogSoftware etc.
24
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON APPLICATIONS AREA
25
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON APPLICATIONS AREA
5) Business Applications
Python is used to build Bussiness applications like ERP and e-commerce systems.
Tryton is a high level application platform.
6) Console Based Application
We can use Python to develop console based applications. For example: IPython.
7) Audio or Video based Applications
Python is awesome to perform multiple tasks and can be used to develop
multimedia applications. Some of real applications are: TimPlayer, cplay etc.
8) 3D CAD Applications
To create CAD application Fandango is a real application which provides full features of
CAD.
26
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON APPLICATIONS AREA
9) Enterprise Applications
Python can be used to create applications which can be used within an Enterprise
or an Organization. Some real time applications are: OpenErp, Tryton, Picalo etc.
10) Applications for Images
Using Python several application can be developed for image. Applications
developed are: VPython, Gogh, imgSeek etc.
There are several such applications which can be developed using Python
27
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
Python - Network Programming Introduction
28
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON VARIABLES
• Variable is a name which is used to refer memory location. Variable also known as
identifier and used to hold value.
• In Python, we don't need to specify the type of variable because Python is a type
infer language and smart enough to get variable type.
• Variable names can be a group of both letters and digits, but they have to begin
with a letter or an underscore.
• It is recommended to use lowercase letters for variable name. Rahul and rahul
both are two different variables
29
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON VARIABLES
30
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON VARIABLES
31
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON VARIABLES
32
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON VARIABLES
• Multiple Assignment
• Python allows us to assign a value to multiple variables in a single statement
which is also known as multiple assignment.
• We can apply multiple assignments in two ways either by assigning a single value
to multiple variables or assigning multiple values to multiple variables. Lets see
given examples.
33
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON VARIABLES
35
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON VARIABLES
37
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Operators are particular symbols that are used to perform operations on operands.
It returns result that can be used in application.
Example
4+5=9
Here 4 and 5 are Operands and (+) , (=) signs are the operators. This expression
produces the output 9.
38
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
• Types of Operators
• Python supports the following operators
• Arithmetic Operators.
• Relational Operators.
• Assignment Operators.
• Logical Operators.
• Membership Operators.
• Identity Operators.
• Bitwise Operators
39
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Arithmetic Operators
The following table contains the arithmetic operators that are used to perform
arithmetic operations.
40
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Relational Operators
The following table contains the relational operators that are used to
check relations.
41
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Assignment Operators
The following table contains the assignment operators that are used to assign
values to the variables.
42
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Logical Operators
The following table contains the logical operators that are used to perform logical
operations.
43
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Example
a=5>4 and 3>2
print (a)
b=5>4 or 3<2
print (b)
c=not(5>4)
print (c)
Output:
>>>
True
True
False
>>>
44
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Example
45
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Membership Operators
The following table contains the membership operators.
46
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Example
a=10 b=20
list=[10,20,30,40,50];
if (a in list):
print("a is in given list")
else:
print("a is not in given list")
if(b not in list):
print("b is not given in list")
else:
print("b is given in list")
47
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Output:
>>>
a is in given list
b is given in list
>>>
48
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
49
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Identity Operators
The following table contains the identity operators
50
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Example
a=20
b=20
if( a is b):
print ( a,b have same identity )
else:
print (a, b are different)
b=10
if( a is not b):
print (a,b have different identity )
else:
51
Whatsapp/Call: +91 75675 04045 (INDIA) |
print (a,b have same identity )+1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Output
>>>
a,b have same identity
a,b have different identity
>>>
52
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON OPERATORS
Output
53
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON COMMENTS
54
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
PYTHON COMMENTS
eg:
#single line comment
print "Hello Python"
'''''This is
55
Whatsapp/Call: +91 75675
multiline 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com
comment'''
Thank You
56
Whatsapp/Call: +91 75675 04045 (INDIA) | +1 902-919-7413 (CANADA) | Mail: info@hazynetwork.com |www.hazynetwork.com