SlideShare a Scribd company logo
1 of 20
Python is an interpreted language used for various
purposes.
It includes :
1.software development.
2.Mathematics
3.System scripting
-Web development(server side)
4.Conduct data analytics
› Python is the most easiest language because their syntax
is similar to English language.
› For eg.
› In order to print hello world :
› The code is print(“hello world”)
Python shell
Pycharm
Sublime
Spider
Atom
PyDev
Jupiter notebook
› Django
› Flask
› Bottle
› Cherrypy
› Dash
› Cubicweb
› Falcon
› If
› If else
› While
› Break and continue
› Range
› List
› Boolean logic
› For
› Dict
› Set
› tuple
a=input(“is it raining”)
if a==‘yes’:
print(“take an umbrella”)
else:
Print(“put on a hat”)
› i=1
› while i<10:
› print(i)
› i=i+1
› i=1
› while i<7:
› i+=1
› if i==3:
› continue
› print(i)
› i=1
› while i<7:
› print(i)
› if i==3:
› break
› i+=1
› Python datatypes are of 2
types:
--mutable :list, dictionary,
sets
--immutable:String, Tuple,
numbers
fruits=["apple", "pineapple", "orange"]
fruits.append("kiwi")
fruits.insert(2,"banana")
del fruits[1]
fruits.pop(0)
fruits.remove("orange")
print(fruits)
print(len(fruits))
print(fruits.index("banana"))
print(fruits[-1])
num=list(range(3,10,3))
print(num)
for i in range(10):
if i==5:
break
print(i)
else:
print(“am else part”)
Used for iterating over a
sequence.
for i in “quadraplus”:
print(i)
› Eg:
› def my_fun(age):
› print(“my age is: “)
› x=int(input(“enter your age”)
› y=int(input(“enter your age”)
› my_fun(x)
› my_fun(y)
› Functions in Python:
A function is a block of
organized, reusable code
that is used to perform a
single, related action.
Functions provide better
modularity for your
application and a high
degree of code reusing.
As you already know, Python
gives you many built-in
functions like print(),
etc. but you can also create
your own functions. These
functions are called
user-defined functions.
def add(a,b):
return a+b
result=add(22,33)
print(result)
› def add(a,b):
› print(a+b)
› x=int(input(“enter a value”)
› y=int(input(“enter another
value”)
› add(x+y)
› Dictionary
› Dictionary function(get)
› Tuple
› List comprehension
› List slice
› set
› String formatting
› String function and
numeric function
› Single inheritance
› Multilevel inheritance
› Multiple inheritance
› Operator overloading
› recursion
› If we wanted to search a
particular pattern then by
using regular epression we
can find out
Core python.pptx

More Related Content

More from GiyaShefin

More from GiyaShefin (6)

ccnp routing.pptx
ccnp routing.pptxccnp routing.pptx
ccnp routing.pptx
 
ccna3mod9_VLAN Trunking Protocol (1).pptx
ccna3mod9_VLAN Trunking Protocol (1).pptxccna3mod9_VLAN Trunking Protocol (1).pptx
ccna3mod9_VLAN Trunking Protocol (1).pptx
 
10_introduction_php.ppt
10_introduction_php.ppt10_introduction_php.ppt
10_introduction_php.ppt
 
07-PHP.pptx
07-PHP.pptx07-PHP.pptx
07-PHP.pptx
 
Excel VBA.pptx
Excel VBA.pptxExcel VBA.pptx
Excel VBA.pptx
 
Python ppt.potx
Python ppt.potxPython ppt.potx
Python ppt.potx
 

Recently uploaded

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
dharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
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...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
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 Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
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
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
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
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
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...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 

Core python.pptx

  • 1.
  • 2. Python is an interpreted language used for various purposes. It includes : 1.software development. 2.Mathematics 3.System scripting -Web development(server side) 4.Conduct data analytics
  • 3. › Python is the most easiest language because their syntax is similar to English language. › For eg. › In order to print hello world : › The code is print(“hello world”)
  • 5. › Django › Flask › Bottle › Cherrypy › Dash › Cubicweb › Falcon
  • 6. › If › If else › While › Break and continue › Range › List › Boolean logic › For › Dict › Set › tuple
  • 7. a=input(“is it raining”) if a==‘yes’: print(“take an umbrella”) else: Print(“put on a hat”)
  • 8. › i=1 › while i<10: › print(i) › i=i+1
  • 9. › i=1 › while i<7: › i+=1 › if i==3: › continue › print(i) › i=1 › while i<7: › print(i) › if i==3: › break › i+=1
  • 10. › Python datatypes are of 2 types: --mutable :list, dictionary, sets --immutable:String, Tuple, numbers
  • 11. fruits=["apple", "pineapple", "orange"] fruits.append("kiwi") fruits.insert(2,"banana") del fruits[1] fruits.pop(0) fruits.remove("orange") print(fruits) print(len(fruits)) print(fruits.index("banana")) print(fruits[-1])
  • 13. for i in range(10): if i==5: break print(i) else: print(“am else part”) Used for iterating over a sequence. for i in “quadraplus”: print(i)
  • 14. › Eg: › def my_fun(age): › print(“my age is: “) › x=int(input(“enter your age”) › y=int(input(“enter your age”) › my_fun(x) › my_fun(y) › Functions in Python: A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. As you already know, Python gives you many built-in functions like print(), etc. but you can also create your own functions. These functions are called user-defined functions.
  • 15. def add(a,b): return a+b result=add(22,33) print(result) › def add(a,b): › print(a+b) › x=int(input(“enter a value”) › y=int(input(“enter another value”) › add(x+y)
  • 16.
  • 17. › Dictionary › Dictionary function(get) › Tuple › List comprehension › List slice › set › String formatting › String function and numeric function
  • 18. › Single inheritance › Multilevel inheritance › Multiple inheritance › Operator overloading › recursion
  • 19. › If we wanted to search a particular pattern then by using regular epression we can find out