SlideShare ist ein Scribd-Unternehmen logo
1 von 18
CONTENTS
• Introduction to python
• History of python
• Basics of programming python
• Object oriented programming (oop)
• Applications
INTRODUCTION TO PYTHON
• Python is a general purpose programming language that is often to applied in
scripting roles.
• So, python is programming language as well as scripting language.
• Python is also called interpreted language.
HISTORY OF PYTHON
• Invented in Netherlands, early 90’s by Guido van Rossum
• Python was conceived in the alte 1980’s and its implementation was started in
December 1989
HOW TO PRINT OUTPUT
• It is very easy to print output.
• Print(“HELLO WORLD”)
• Here print is predefined function in python for printing the output.
BASICS OF PYTHON PROGRAMMING
• Keywords in python
• Python variables
• Data types
• Python operators
• Conditional and Looping statements
• Python functions
KEYWORDS IN PYTHON
• Keywords are predefined, reserved words used in Python programming that have
special meanings to the compiler.
• We cannot use a keyword as a variable name, function name, or any other
identifier. They are used to define the syntax and structure of the Python
language.
• Ex: True, False, else, def, if, import, for, pass, return.
PYTHON VARIABLES
• In programming, a variable is a container (storage area) to hold data. For
example
• number=10
• Here, number is the variable storing the value 10
DATA TYPES
• In computer programming, data types specify the type of data that can be stored
inside a variable.
• num=6.
• Here 6 is an integer is assigned to num variable. So that num is the integer data
type.
PYTHON DATA TYPES
NAME TYPE DESCRIPTION
Integer int To store sny integer value such as: 3,400,34
Floating point float Numbers with decimal values:3.45,12.7
Strings Str Collection of characters:” Bhaskar”
Lists List A=[10,”rohit”,20.9]
Dictionaries Dict B={1:”dhoni”,2:2003,3:6}
Sets Sets C={1,2,3,”virat”}
Tuples Tuple D=(“Bhaskar”,6,9,2003)
Boolean bool Logical value indicating True or false
PYTHON OPERATORS
• Here's a list of different types of Python operators that we will learn in this tutorial.
• Arithmetic operators : +, - , * , /, % etc.
• Assignment operators : =, +=, -=, *= etc.
• Logical operators : and, or, not
• Bitwise operators : &, |, ^, >>, <<
• Conditional operators : ==, < , >, >=, <=, !=
CONDITIONAL STATEMENTS
• In conditional statements if the condition is true , then next step instruction
executed. Otherwise it not execute.
• Conditional statements: if, elif, else, switch
• Syntax:
• if(condition):
• statement_1
• else:
• statement_2
LOOP STATEMENTS
• Generally looping statements are used for repeatition.
• Loop statements: for, while, do while.
• Syntax:
• for( range):
• statement_1
• statement_2
PYTHON FUNCTIONS
• A function is a block of code that performs a specific task.
There are two types of function in Python programming:
•Standard library functions - These are built-in functions in Python that
are available to use.
•User-defined functions - We can create our own functions based on
our requirements.
PYTHON FUNCTIONS
• Syntax:
• def greet():
• print(“hello world”)
• Here def is the keyword to create a user defined function and greet is the
function name. That is our choice to give any name to the function.
OBJECT ORIENTED PROGRAMMING
• Python is a versatile programming language that supports various programming
styles, including object-oriented programming (OOP) through the use
of objects and classes.
• An object is any entity that has attributes and behaviors
• A class is a blueprint for that object.
OBJECT ORIENTED PROGRAMMING
• INHERITANCE : Inheritance is a way of creating a new class for using details of an existing class
without modifying it. The newly formed class is a derived class (or child class). Similarly, the existing
class is a base class (or parent class).
• ENCAPSULATION : Encapsulation is one of the key features of object-oriented programming.
Encapsulation refers to the bundling of attributes and methods inside a single class.It prevents
outer classes from accessing and changing attributes and methods of a class. This also helps to
achieve data hiding.
• POLYMORPHISM: Polymorphism is another important concept of object-oriented programming. It
simply means more than one form.
•
APPLICATIONS
• Database programming
• GUI programming
• Games and 3d garphics
• Web development
• Scientific applications
THANK YOU

Weitere ähnliche Inhalte

Ähnlich wie bhaskars.pptx

web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh MalothBhavsingh Maloth
 
Basic Introduction to Python Programming
Basic Introduction to Python ProgrammingBasic Introduction to Python Programming
Basic Introduction to Python ProgrammingSubashiniRathinavel
 
Python basics_ part1
Python basics_ part1Python basics_ part1
Python basics_ part1Elaf A.Saeed
 
INTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxINTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxNimrahafzal1
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1Ahmet Bulut
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdfsamiwaris2
 
Python indroduction
Python indroductionPython indroduction
Python indroductionFEG
 
Python for katana
Python for katanaPython for katana
Python for katanakedar nath
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python ProgrammingKamal Acharya
 
Advance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learningAdvance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learningsherinjoyson
 
Introduction to Python – Learn Python Programming.pptx
Introduction to Python – Learn Python Programming.pptxIntroduction to Python – Learn Python Programming.pptx
Introduction to Python – Learn Python Programming.pptxHassanShah396906
 

Ähnlich wie bhaskars.pptx (20)

web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Maloth
 
Python-Basics.pptx
Python-Basics.pptxPython-Basics.pptx
Python-Basics.pptx
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
 
Basic Introduction to Python Programming
Basic Introduction to Python ProgrammingBasic Introduction to Python Programming
Basic Introduction to Python Programming
 
Python basics_ part1
Python basics_ part1Python basics_ part1
Python basics_ part1
 
Python programming
Python programmingPython programming
Python programming
 
INTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxINTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptx
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
 
Python Programming 1.pptx
Python Programming 1.pptxPython Programming 1.pptx
Python Programming 1.pptx
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdf
 
Python intro
Python introPython intro
Python intro
 
Python indroduction
Python indroductionPython indroduction
Python indroduction
 
Python for katana
Python for katanaPython for katana
Python for katana
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
 
Python Training
Python TrainingPython Training
Python Training
 
Advance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learningAdvance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learning
 
Unit -1 CAP.pptx
Unit -1 CAP.pptxUnit -1 CAP.pptx
Unit -1 CAP.pptx
 
python_class.pptx
python_class.pptxpython_class.pptx
python_class.pptx
 
Introduction to Python – Learn Python Programming.pptx
Introduction to Python – Learn Python Programming.pptxIntroduction to Python – Learn Python Programming.pptx
Introduction to Python – Learn Python Programming.pptx
 

Kürzlich hochgeladen

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 

Kürzlich hochgeladen (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 

bhaskars.pptx

  • 1. CONTENTS • Introduction to python • History of python • Basics of programming python • Object oriented programming (oop) • Applications
  • 2. INTRODUCTION TO PYTHON • Python is a general purpose programming language that is often to applied in scripting roles. • So, python is programming language as well as scripting language. • Python is also called interpreted language.
  • 3. HISTORY OF PYTHON • Invented in Netherlands, early 90’s by Guido van Rossum • Python was conceived in the alte 1980’s and its implementation was started in December 1989
  • 4. HOW TO PRINT OUTPUT • It is very easy to print output. • Print(“HELLO WORLD”) • Here print is predefined function in python for printing the output.
  • 5. BASICS OF PYTHON PROGRAMMING • Keywords in python • Python variables • Data types • Python operators • Conditional and Looping statements • Python functions
  • 6. KEYWORDS IN PYTHON • Keywords are predefined, reserved words used in Python programming that have special meanings to the compiler. • We cannot use a keyword as a variable name, function name, or any other identifier. They are used to define the syntax and structure of the Python language. • Ex: True, False, else, def, if, import, for, pass, return.
  • 7. PYTHON VARIABLES • In programming, a variable is a container (storage area) to hold data. For example • number=10 • Here, number is the variable storing the value 10
  • 8. DATA TYPES • In computer programming, data types specify the type of data that can be stored inside a variable. • num=6. • Here 6 is an integer is assigned to num variable. So that num is the integer data type.
  • 9. PYTHON DATA TYPES NAME TYPE DESCRIPTION Integer int To store sny integer value such as: 3,400,34 Floating point float Numbers with decimal values:3.45,12.7 Strings Str Collection of characters:” Bhaskar” Lists List A=[10,”rohit”,20.9] Dictionaries Dict B={1:”dhoni”,2:2003,3:6} Sets Sets C={1,2,3,”virat”} Tuples Tuple D=(“Bhaskar”,6,9,2003) Boolean bool Logical value indicating True or false
  • 10. PYTHON OPERATORS • Here's a list of different types of Python operators that we will learn in this tutorial. • Arithmetic operators : +, - , * , /, % etc. • Assignment operators : =, +=, -=, *= etc. • Logical operators : and, or, not • Bitwise operators : &, |, ^, >>, << • Conditional operators : ==, < , >, >=, <=, !=
  • 11. CONDITIONAL STATEMENTS • In conditional statements if the condition is true , then next step instruction executed. Otherwise it not execute. • Conditional statements: if, elif, else, switch • Syntax: • if(condition): • statement_1 • else: • statement_2
  • 12. LOOP STATEMENTS • Generally looping statements are used for repeatition. • Loop statements: for, while, do while. • Syntax: • for( range): • statement_1 • statement_2
  • 13. PYTHON FUNCTIONS • A function is a block of code that performs a specific task. There are two types of function in Python programming: •Standard library functions - These are built-in functions in Python that are available to use. •User-defined functions - We can create our own functions based on our requirements.
  • 14. PYTHON FUNCTIONS • Syntax: • def greet(): • print(“hello world”) • Here def is the keyword to create a user defined function and greet is the function name. That is our choice to give any name to the function.
  • 15. OBJECT ORIENTED PROGRAMMING • Python is a versatile programming language that supports various programming styles, including object-oriented programming (OOP) through the use of objects and classes. • An object is any entity that has attributes and behaviors • A class is a blueprint for that object.
  • 16. OBJECT ORIENTED PROGRAMMING • INHERITANCE : Inheritance is a way of creating a new class for using details of an existing class without modifying it. The newly formed class is a derived class (or child class). Similarly, the existing class is a base class (or parent class). • ENCAPSULATION : Encapsulation is one of the key features of object-oriented programming. Encapsulation refers to the bundling of attributes and methods inside a single class.It prevents outer classes from accessing and changing attributes and methods of a class. This also helps to achieve data hiding. • POLYMORPHISM: Polymorphism is another important concept of object-oriented programming. It simply means more than one form. •
  • 17. APPLICATIONS • Database programming • GUI programming • Games and 3d garphics • Web development • Scientific applications