SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
Python Course In Chandigarh :
Excellence Technology is one of the
top and best python Course institute
in Chandigarh. Python is one of the
most trending technology in these
days. It is a general purpose
programming language. That's why,
you can use the programming
language for developing both desktop
and web applications. to become a full
stack web developer is always the best
choice. You can also develop and
design complex numeric and scientific
application. Python is an interpreted
high level and general purpose
programming language. It was created
by Guido Van Rossum. He started
working on python in the late 1980's as
a successor to the ABC Programming
Language . He was inspired By the
Exception Handling Features of SETL
programming language .
Some Important Points to know about Python
Course :
• Introduction To Python
• Python Tokens
• Python Statements
• Data Structure
• Operator
• Flow Control
• Module & Function
• File Handling
1. Introduction To Python : Python
is an interpreted high level and
general purpose programming
language. It was created by Guido
Van Rossum. He started working on
python in the late 1980's as a
successor to the ABC Programming
Language
2.Python Tokens : Indivisual elements that can
identified by the programming language called
Tokens.
• Identifier
• Keywords
• Operators
• Delimiters
• Literals
3. Python Statement : Python Statements
consists of one or more statements :
1. Simple Statements : The simple
statements written in a single logical
line of code is called simple statements .
• Break Statements
• Continue Statements
• Return Statements
• Import Statements
2 . Compound Statements : A compound
statements is a statements comprise of
group of statements. the compound
statements are usually executes, when a
condition satisfier or a code block is called
directly or through a function call.
• Conditional Statements
• Condition Loop Statements
• An Exception Handler
4.Data Structure : Data Structures are a way
of organizing data so that it can be accessed
more efficiently depending upon the situation.
Data Structures are fundamentals of any
programming language around which a
program is built. Python helps to learn the
fundamental of these data structures in a
simpler way as compared to other
programming languages. In this article, we
will discuss the Data Structures in the Python
Programming Language and how they are
related to some specific Python Data Types.
We will discuss all the in-built data
structures like list tuples, dictionaries, etc. as
well as some advanced data structures like
trees, graphs, etc.
1.Built in Data Structure : Python also
provides some built-in data types, in
particular, Dictionary , list , set and and
tuple.
2.User-Defined Data Structure : Data
structures that aren’t supported by python but can
be programmed to reflect the same functionality
using concepts supported by python are user-
defined data structures.
• Linked list
• Stack
• Queue
• Tree
• Graph
5. Operator : In Python, operators
are special symbols that designate that
some sort of computation should be
performed.
• Increment and decrement operators.
• Bitwise operators.
• Assignment operators.
• Logical operators.
• Relational operators.
• Special operators.
• Conditional operators.
• Arithmetic Operators.
6.Flow Control : In Python programming, flow
control is the order in which statements or blocks of
code are executed at runtime based on a condition.
The flow control statements are divided into three
categories
1. Conditional statements
2. Iterative statements.
3. Transfer statements
1. Conditional statements : In Python, condition statements
act depending on whether a given condition is true or false.
You can execute different blocks of codes depending on the
outcome of a condition. Condition statements always
evaluate to either True or False.
There are three types of conditional statements.
1. if statement
2. if-else
3. if-elif-else
4. nested if-else
2. Iterative statements : In Python, iterative statements allow
us to execute a block of code repeatedly as long as the condition is
True. We also call it a loop statements
There are two types of Iterative statements.
• for loop
• while loop
3.Transfer Statements : In Python, transfer
statements are used to alter the program’s way of execution in
a certain manner.
There are three types of Transfer statements.
1. break statement
2. continue statement
3. pass statements
8. Module & Function :
Python Module : A Python module is a file
containing Python definitions and statements. A
module can define functions, classes, and
variables. A module can also include runnable
code. Grouping related code into a module makes
the code easier to understand and use. It also
makes the code logically organized .
Two types of modules in Python :
• Built-in Module
• User- Defined Module
Python Function : Functions are the basic building block of
any python program, defined as the organized block of reusable
code, which can be called whenever required. A function is used to
carry out a specific task. The function might require multiple
inputs. When the task is done executing, the function can or can not
return one or more values.
There are two types of functions in python:
• User-Defined Functions - these types of functions are defined by the user to
perform any specific task. There are two types of functions in python:
• Built-in Functions - These are pre-defined functions in python. Built-in
functions are already defined in python. A user has to remember the
name and parameters of a particular function. Since these functions are
pre-defined, there is no need to define them again.
Some of the widely used built-in functions are given below:
len() Returns the length of a python object
abs() Returns the absolute value of a number
max() Returns the largest item in a python iterable
min() Returns the largest item in a python iterable
sum() Returns the sum of all the items in an iterator
type() Returns the type of a python object
help() Executes the python built-in interactive help console
input() Allows the user to give input
format() Formats a specified value
bool() Returns the boolean value of an object
9. File Handling : Python too supports file handling and
allows users to handle files i.e., to read and write files, along with many other
file handling options, to operate on files. The concept of file handling has
stretched over various other languages, but the implementation is either
complicated or lengthy, but like other concepts of Python, this concept here
is also easy and short. Python treats files differently as text or binary and this
is important. Each line of code includes a sequence of characters and they
form a text file. Each line of a file is terminated with a special character,
called the EOL or End of Line characters like comma {,} or newline
character. It ends the current line and tells the interpreter a new one has
begun. Let’s start with the reading and writing files.
the following mode is supported:
1. r: open an existing file for a read operation.
2. w: open an existing file for a write operation. If the file already
contains some data then it will be overridden but if the file is not
present then it creates the file as well.
3. a: open an existing file for append operation. It won’t override
existing data.
4. r+: To read and write data into the file. The previous data in the
file will be overridden.
5. w+: To write and read data. It will override existing data.
6. a+: To append and read data from the file. It won’t override existing
data.

Contenu connexe

Similaire à Python Course In Chandigarh

Python-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptxPython-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptxdmdHaneef
 
Mastering Python Programming.pdf
Mastering Python Programming.pdfMastering Python Programming.pdf
Mastering Python Programming.pdfDhineshN12
 
Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Chariza Pladin
 
Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computersharanyarashmir5
 
web programming Unit VIII complete about python by Bhavsingh Maloth
web programming Unit VIII complete about python  by Bhavsingh Malothweb programming Unit VIII complete about python  by Bhavsingh Maloth
web programming Unit VIII complete about python by Bhavsingh MalothBhavsingh Maloth
 
Python presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, BiharPython presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, BiharUttamKumar617567
 
Session-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxSession-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxWajidAliHashmi2
 
Summer Training Project On Python Programming
Summer Training Project On Python ProgrammingSummer Training Project On Python Programming
Summer Training Project On Python ProgrammingKAUSHAL KUMAR JHA
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answersVigneshVijay21
 

Similaire à Python Course In Chandigarh (20)

MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
PYTHON PPT.pptx
PYTHON PPT.pptxPYTHON PPT.pptx
PYTHON PPT.pptx
 
Python-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptxPython-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptx
 
Mastering Python Programming.pdf
Mastering Python Programming.pdfMastering Python Programming.pdf
Mastering Python Programming.pdf
 
01 python introduction
01 python introduction 01 python introduction
01 python introduction
 
Python Course In Chandigarh
Python Course In ChandigarhPython Course In Chandigarh
Python Course In Chandigarh
 
Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3
 
Intro to python
Intro to pythonIntro to python
Intro to python
 
Python intro
Python introPython intro
Python intro
 
Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computer
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
 
Python PPT 50.pptx
Python PPT 50.pptxPython PPT 50.pptx
Python PPT 50.pptx
 
web programming Unit VIII complete about python by Bhavsingh Maloth
web programming Unit VIII complete about python  by Bhavsingh Malothweb programming Unit VIII complete about python  by Bhavsingh Maloth
web programming Unit VIII complete about python by Bhavsingh Maloth
 
Python presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, BiharPython presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, Bihar
 
Session-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxSession-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptx
 
Summer Training Project On Python Programming
Summer Training Project On Python ProgrammingSummer Training Project On Python Programming
Summer Training Project On Python Programming
 
Python 01.pptx
Python 01.pptxPython 01.pptx
Python 01.pptx
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 

Plus de Excellence Academy

Web Designing Training In Chandigarh
Web Designing Training In ChandigarhWeb Designing Training In Chandigarh
Web Designing Training In ChandigarhExcellence Academy
 
Graphic Designing Training In Chandigarh
Graphic Designing  Training In ChandigarhGraphic Designing  Training In Chandigarh
Graphic Designing Training In ChandigarhExcellence Academy
 
Graphic Designing Training In Chandigarh
Graphic Designing Training In ChandigarhGraphic Designing Training In Chandigarh
Graphic Designing Training In ChandigarhExcellence Academy
 
Android Training Course In Chandigarh
Android Training Course In ChandigarhAndroid Training Course In Chandigarh
Android Training Course In ChandigarhExcellence Academy
 
Android Training course In Chandigarh
Android Training course In ChandigarhAndroid Training course In Chandigarh
Android Training course In ChandigarhExcellence Academy
 
Android Training course in Chandigarh
Android Training course in ChandigarhAndroid Training course in Chandigarh
Android Training course in ChandigarhExcellence Academy
 
Android Training Course In Chandigarh
Android Training Course In ChandigarhAndroid Training Course In Chandigarh
Android Training Course In ChandigarhExcellence Academy
 
PHP Training In Chandigarh1.pdf
PHP Training In Chandigarh1.pdfPHP Training In Chandigarh1.pdf
PHP Training In Chandigarh1.pdfExcellence Academy
 

Plus de Excellence Academy (16)

Python Course In Chandigarh
Python Course In ChandigarhPython Course In Chandigarh
Python Course In Chandigarh
 
Web Designing Training In Chandigarh
Web Designing Training In ChandigarhWeb Designing Training In Chandigarh
Web Designing Training In Chandigarh
 
Java Training in Chandigarh
Java Training in ChandigarhJava Training in Chandigarh
Java Training in Chandigarh
 
Java Course in Chandigarh
Java Course in ChandigarhJava Course in Chandigarh
Java Course in Chandigarh
 
Graphic Designing Training In Chandigarh
Graphic Designing  Training In ChandigarhGraphic Designing  Training In Chandigarh
Graphic Designing Training In Chandigarh
 
Graphic Designing Training In Chandigarh
Graphic Designing Training In ChandigarhGraphic Designing Training In Chandigarh
Graphic Designing Training In Chandigarh
 
Android Training Course In Chandigarh
Android Training Course In ChandigarhAndroid Training Course In Chandigarh
Android Training Course In Chandigarh
 
Android Training course In Chandigarh
Android Training course In ChandigarhAndroid Training course In Chandigarh
Android Training course In Chandigarh
 
PHP Training In Chandigarh
PHP Training In ChandigarhPHP Training In Chandigarh
PHP Training In Chandigarh
 
PHP Training In Chandigarh
PHP Training In ChandigarhPHP Training In Chandigarh
PHP Training In Chandigarh
 
SEO Training in Chandigarh
SEO Training in ChandigarhSEO Training in Chandigarh
SEO Training in Chandigarh
 
Android Training course in Chandigarh
Android Training course in ChandigarhAndroid Training course in Chandigarh
Android Training course in Chandigarh
 
Android Training Course In Chandigarh
Android Training Course In ChandigarhAndroid Training Course In Chandigarh
Android Training Course In Chandigarh
 
Php Training in Chnadigarh
Php Training in ChnadigarhPhp Training in Chnadigarh
Php Training in Chnadigarh
 
PHP Training In Chandigarh
PHP Training In ChandigarhPHP Training In Chandigarh
PHP Training In Chandigarh
 
PHP Training In Chandigarh1.pdf
PHP Training In Chandigarh1.pdfPHP Training In Chandigarh1.pdf
PHP Training In Chandigarh1.pdf
 

Dernier

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 

Dernier (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

Python Course In Chandigarh

  • 1. Python Course In Chandigarh : Excellence Technology is one of the top and best python Course institute in Chandigarh. Python is one of the most trending technology in these days. It is a general purpose programming language. That's why, you can use the programming language for developing both desktop and web applications. to become a full stack web developer is always the best choice. You can also develop and design complex numeric and scientific application. Python is an interpreted high level and general purpose programming language. It was created by Guido Van Rossum. He started working on python in the late 1980's as a successor to the ABC Programming Language . He was inspired By the Exception Handling Features of SETL programming language .
  • 2.
  • 3. Some Important Points to know about Python Course : • Introduction To Python • Python Tokens • Python Statements • Data Structure • Operator • Flow Control • Module & Function • File Handling
  • 4. 1. Introduction To Python : Python is an interpreted high level and general purpose programming language. It was created by Guido Van Rossum. He started working on python in the late 1980's as a successor to the ABC Programming Language 2.Python Tokens : Indivisual elements that can identified by the programming language called Tokens. • Identifier • Keywords • Operators • Delimiters • Literals
  • 5. 3. Python Statement : Python Statements consists of one or more statements : 1. Simple Statements : The simple statements written in a single logical line of code is called simple statements . • Break Statements • Continue Statements • Return Statements • Import Statements 2 . Compound Statements : A compound statements is a statements comprise of group of statements. the compound statements are usually executes, when a condition satisfier or a code block is called directly or through a function call. • Conditional Statements • Condition Loop Statements • An Exception Handler
  • 6. 4.Data Structure : Data Structures are a way of organizing data so that it can be accessed more efficiently depending upon the situation. Data Structures are fundamentals of any programming language around which a program is built. Python helps to learn the fundamental of these data structures in a simpler way as compared to other programming languages. In this article, we will discuss the Data Structures in the Python Programming Language and how they are related to some specific Python Data Types. We will discuss all the in-built data structures like list tuples, dictionaries, etc. as well as some advanced data structures like trees, graphs, etc.
  • 7. 1.Built in Data Structure : Python also provides some built-in data types, in particular, Dictionary , list , set and and tuple. 2.User-Defined Data Structure : Data structures that aren’t supported by python but can be programmed to reflect the same functionality using concepts supported by python are user- defined data structures. • Linked list • Stack • Queue • Tree • Graph
  • 8. 5. Operator : In Python, operators are special symbols that designate that some sort of computation should be performed. • Increment and decrement operators. • Bitwise operators. • Assignment operators. • Logical operators. • Relational operators. • Special operators. • Conditional operators. • Arithmetic Operators.
  • 9. 6.Flow Control : In Python programming, flow control is the order in which statements or blocks of code are executed at runtime based on a condition. The flow control statements are divided into three categories 1. Conditional statements 2. Iterative statements. 3. Transfer statements 1. Conditional statements : In Python, condition statements act depending on whether a given condition is true or false. You can execute different blocks of codes depending on the outcome of a condition. Condition statements always evaluate to either True or False. There are three types of conditional statements. 1. if statement 2. if-else 3. if-elif-else 4. nested if-else 2. Iterative statements : In Python, iterative statements allow us to execute a block of code repeatedly as long as the condition is True. We also call it a loop statements There are two types of Iterative statements. • for loop • while loop
  • 10. 3.Transfer Statements : In Python, transfer statements are used to alter the program’s way of execution in a certain manner. There are three types of Transfer statements. 1. break statement 2. continue statement 3. pass statements
  • 11. 8. Module & Function : Python Module : A Python module is a file containing Python definitions and statements. A module can define functions, classes, and variables. A module can also include runnable code. Grouping related code into a module makes the code easier to understand and use. It also makes the code logically organized . Two types of modules in Python : • Built-in Module • User- Defined Module Python Function : Functions are the basic building block of any python program, defined as the organized block of reusable code, which can be called whenever required. A function is used to carry out a specific task. The function might require multiple inputs. When the task is done executing, the function can or can not return one or more values.
  • 12. There are two types of functions in python: • User-Defined Functions - these types of functions are defined by the user to perform any specific task. There are two types of functions in python: • Built-in Functions - These are pre-defined functions in python. Built-in functions are already defined in python. A user has to remember the name and parameters of a particular function. Since these functions are pre-defined, there is no need to define them again. Some of the widely used built-in functions are given below: len() Returns the length of a python object abs() Returns the absolute value of a number max() Returns the largest item in a python iterable min() Returns the largest item in a python iterable sum() Returns the sum of all the items in an iterator type() Returns the type of a python object help() Executes the python built-in interactive help console input() Allows the user to give input format() Formats a specified value bool() Returns the boolean value of an object
  • 13. 9. File Handling : Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files. The concept of file handling has stretched over various other languages, but the implementation is either complicated or lengthy, but like other concepts of Python, this concept here is also easy and short. Python treats files differently as text or binary and this is important. Each line of code includes a sequence of characters and they form a text file. Each line of a file is terminated with a special character, called the EOL or End of Line characters like comma {,} or newline character. It ends the current line and tells the interpreter a new one has begun. Let’s start with the reading and writing files. the following mode is supported: 1. r: open an existing file for a read operation. 2. w: open an existing file for a write operation. If the file already contains some data then it will be overridden but if the file is not present then it creates the file as well. 3. a: open an existing file for append operation. It won’t override existing data. 4. r+: To read and write data into the file. The previous data in the file will be overridden. 5. w+: To write and read data. It will override existing data. 6. a+: To append and read data from the file. It won’t override existing data.