SlideShare a Scribd company logo
1 of 1
#Date 7th Dec 2015.
#Today we are going to perform following functions.
#Lets define a function to convert dollar to pakistan ruppe.
def Dollar_To_Ruppe(R):
return(R*105.33)
print Dollar_To_Ruppe(5)
print Dollar_To_Ruppe(10)
#Lets define a function to convert F to C & C to F.
def Farenheit_To_Celsius(F):
return(F-32)*5/9
print Farenheit_To_Celsius(5)
print Farenheit_To_Celsius(10)
def Celsius_To_Farenheit(C):
return(C*9/5+32)
print Celsius_To_Farenheit(5)
print Celsius_To_Farenheit(10)
#Now lets define a function to find area of rectangle,triangle,circle.
def Area_of_rectangle(L,W):
return(L*W)
print Area_of_rectangle(5,5)
def Area_of_triangle(b,h):
return(1/2*b*h)
print Area_of_triangle(2,2)
def Area_of_circle(r):
return 3.14*(r*r)
print Area_of_circle(5)
#Now we are going to define a function to calculate the circumference of a
circle.
def Circumference_of_circle(r):
return 2*3.14*(r)
print Circumference_of_circle(2)
#Lets define a function to calculate the square of an integer.
def square(n):
return (n*n)
print square(2)
#Now we are going to define a function to calculate the cube of an integer.
def cube(r):
return(r*r*r)
print cube(5)

More Related Content

What's hot

Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500ilsamaryum
 
Mac Interview Workshop 2021
Mac Interview Workshop 2021Mac Interview Workshop 2021
Mac Interview Workshop 2021Michael Viveros
 
Infix prefix postfix
Infix prefix postfixInfix prefix postfix
Infix prefix postfixSelf-Employed
 
ClojureBridge - Helsinki 17/05/2015
ClojureBridge - Helsinki 17/05/2015ClojureBridge - Helsinki 17/05/2015
ClojureBridge - Helsinki 17/05/2015Jarppe Lansio
 
Addsub poly
Addsub polyAddsub poly
Addsub polyzoffben
 
Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3Dr. Loganathan R
 
Test solutions of computer languages
Test solutions of computer languagesTest solutions of computer languages
Test solutions of computer languagesmanish katara
 
Teoria y problemas de interes simple ii is54 ccesa007
Teoria y problemas de interes simple ii  is54 ccesa007Teoria y problemas de interes simple ii  is54 ccesa007
Teoria y problemas de interes simple ii is54 ccesa007Demetrio Ccesa Rayme
 
Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2Dr. Loganathan R
 
Data Visualization With R: Learn To Modify Color Of Plots
Data Visualization With R: Learn To Modify Color Of PlotsData Visualization With R: Learn To Modify Color Of Plots
Data Visualization With R: Learn To Modify Color Of PlotsRsquared Academy
 
Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2Dr. Loganathan R
 
Teoría y Problemas de Interes Simple II IS54 ccesa007
Teoría y Problemas de Interes Simple II  IS54 ccesa007Teoría y Problemas de Interes Simple II  IS54 ccesa007
Teoría y Problemas de Interes Simple II IS54 ccesa007Demetrio Ccesa Rayme
 
Implement a queue using two stacks.
Implement a queue using two stacks.Implement a queue using two stacks.
Implement a queue using two stacks.Dr. Loganathan R
 
Ds list of experiments ce
Ds list of experiments ceDs list of experiments ce
Ds list of experiments ceShraddha Patel
 

What's hot (20)

Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500
 
Cpm crashing example
Cpm crashing exampleCpm crashing example
Cpm crashing example
 
Mac Interview Workshop 2021
Mac Interview Workshop 2021Mac Interview Workshop 2021
Mac Interview Workshop 2021
 
Infix prefix postfix
Infix prefix postfixInfix prefix postfix
Infix prefix postfix
 
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
 
ClojureBridge - Helsinki 17/05/2015
ClojureBridge - Helsinki 17/05/2015ClojureBridge - Helsinki 17/05/2015
ClojureBridge - Helsinki 17/05/2015
 
Addsub poly
Addsub polyAddsub poly
Addsub poly
 
Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3
 
algorithmdivs
algorithmdivsalgorithmdivs
algorithmdivs
 
Circular queues
Circular queuesCircular queues
Circular queues
 
Assignment3
Assignment3Assignment3
Assignment3
 
Test solutions of computer languages
Test solutions of computer languagesTest solutions of computer languages
Test solutions of computer languages
 
Teoria y problemas de interes simple ii is54 ccesa007
Teoria y problemas de interes simple ii  is54 ccesa007Teoria y problemas de interes simple ii  is54 ccesa007
Teoria y problemas de interes simple ii is54 ccesa007
 
Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2
 
Data Visualization With R: Learn To Modify Color Of Plots
Data Visualization With R: Learn To Modify Color Of PlotsData Visualization With R: Learn To Modify Color Of Plots
Data Visualization With R: Learn To Modify Color Of Plots
 
Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2
 
Teoría y Problemas de Interes Simple II IS54 ccesa007
Teoría y Problemas de Interes Simple II  IS54 ccesa007Teoría y Problemas de Interes Simple II  IS54 ccesa007
Teoría y Problemas de Interes Simple II IS54 ccesa007
 
Implement a queue using two stacks.
Implement a queue using two stacks.Implement a queue using two stacks.
Implement a queue using two stacks.
 
C test
C testC test
C test
 
Ds list of experiments ce
Ds list of experiments ceDs list of experiments ce
Ds list of experiments ce
 

Viewers also liked

Ben c ar_system_level_2_certificate
Ben c ar_system_level_2_certificateBen c ar_system_level_2_certificate
Ben c ar_system_level_2_certificateBenjamin S. Castillo
 
My future 2013
My future 2013My future 2013
My future 2013cmuzio1
 
Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...
Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...
Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...iosrjce
 
Fashion in Greece 25 years ago
Fashion in Greece 25 years agoFashion in Greece 25 years ago
Fashion in Greece 25 years agoIoannis Psifas
 
Enseñanzas del papa fransico no.12
Enseñanzas del papa fransico no.12Enseñanzas del papa fransico no.12
Enseñanzas del papa fransico no.12monica eljuri
 
Image Based Relational Database Watermarking: A Survey
Image Based Relational Database Watermarking: A SurveyImage Based Relational Database Watermarking: A Survey
Image Based Relational Database Watermarking: A Surveyiosrjce
 
Comportamento organizacional
Comportamento organizacionalComportamento organizacional
Comportamento organizacionalBianca Carvalho
 
Disaster Recovery using Amazon Web Services - Webinar
Disaster Recovery using Amazon Web Services - WebinarDisaster Recovery using Amazon Web Services - Webinar
Disaster Recovery using Amazon Web Services - WebinarAmazon Web Services
 
методология планирования меню американской национальной программы школьных об...
методология планирования меню американской национальной программы школьных об...методология планирования меню американской национальной программы школьных об...
методология планирования меню американской национальной программы школьных об...Sokirianskiy&Lazerson School
 

Viewers also liked (13)

Ben c ar_system_level_2_certificate
Ben c ar_system_level_2_certificateBen c ar_system_level_2_certificate
Ben c ar_system_level_2_certificate
 
My future 2013
My future 2013My future 2013
My future 2013
 
Hunter
HunterHunter
Hunter
 
Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...
Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...
Determination of Energy Involved In a Stepwise Size Reduction of Maize, Using...
 
Embedded Electronic Design in Taiwan for China Manufacturing
Embedded Electronic Design in Taiwan for China ManufacturingEmbedded Electronic Design in Taiwan for China Manufacturing
Embedded Electronic Design in Taiwan for China Manufacturing
 
Fashion in Greece 25 years ago
Fashion in Greece 25 years agoFashion in Greece 25 years ago
Fashion in Greece 25 years ago
 
Enseñanzas del papa fransico no.12
Enseñanzas del papa fransico no.12Enseñanzas del papa fransico no.12
Enseñanzas del papa fransico no.12
 
Image Based Relational Database Watermarking: A Survey
Image Based Relational Database Watermarking: A SurveyImage Based Relational Database Watermarking: A Survey
Image Based Relational Database Watermarking: A Survey
 
Education attainment in pakistan
Education attainment in pakistanEducation attainment in pakistan
Education attainment in pakistan
 
Comportamento organizacional
Comportamento organizacionalComportamento organizacional
Comportamento organizacional
 
Disaster Recovery using Amazon Web Services - Webinar
Disaster Recovery using Amazon Web Services - WebinarDisaster Recovery using Amazon Web Services - Webinar
Disaster Recovery using Amazon Web Services - Webinar
 
Greek Crisis
Greek CrisisGreek Crisis
Greek Crisis
 
методология планирования меню американской национальной программы школьных об...
методология планирования меню американской национальной программы школьных об...методология планирования меню американской национальной программы школьных об...
методология планирования меню американской национальной программы школьных об...
 

Similar to Defining Function In Python

BB_11_Futures & Options_Hull_Chap_12.pptx
BB_11_Futures & Options_Hull_Chap_12.pptxBB_11_Futures & Options_Hull_Chap_12.pptx
BB_11_Futures & Options_Hull_Chap_12.pptxIbrahimKhatatbeh5
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Mario Fusco
 
Testing in the World of Functional Programming
Testing in the World of Functional ProgrammingTesting in the World of Functional Programming
Testing in the World of Functional ProgrammingLuka Jacobowitz
 
Mercury: A Functional Review
Mercury: A Functional ReviewMercury: A Functional Review
Mercury: A Functional ReviewMark Cheeseman
 
PHP in 2018 - Q4 - AFUP Limoges
PHP in 2018 - Q4 - AFUP LimogesPHP in 2018 - Q4 - AFUP Limoges
PHP in 2018 - Q4 - AFUP Limoges✅ William Pinaud
 
The Ring programming language version 1.5 book - Part 2 of 31
The Ring programming language version 1.5 book - Part 2 of 31The Ring programming language version 1.5 book - Part 2 of 31
The Ring programming language version 1.5 book - Part 2 of 31Mahmoud Samir Fayed
 
Derivatives Binomial Option Pricing Model Examples
Derivatives  Binomial  Option  Pricing  Model  ExamplesDerivatives  Binomial  Option  Pricing  Model  Examples
Derivatives Binomial Option Pricing Model Examplesuichong
 
The Ring programming language version 1.7 book - Part 87 of 196
The Ring programming language version 1.7 book - Part 87 of 196The Ring programming language version 1.7 book - Part 87 of 196
The Ring programming language version 1.7 book - Part 87 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 15 of 212
The Ring programming language version 1.10 book - Part 15 of 212The Ring programming language version 1.10 book - Part 15 of 212
The Ring programming language version 1.10 book - Part 15 of 212Mahmoud Samir Fayed
 
Simplify writing code with deliberate commits
Simplify writing code with deliberate commitsSimplify writing code with deliberate commits
Simplify writing code with deliberate commitsJoel Chippindale
 
All I know about rsc.io/c2go
All I know about rsc.io/c2goAll I know about rsc.io/c2go
All I know about rsc.io/c2goMoriyoshi Koizumi
 
The Ring programming language version 1.5.3 book - Part 91 of 184
The Ring programming language version 1.5.3 book - Part 91 of 184The Ring programming language version 1.5.3 book - Part 91 of 184
The Ring programming language version 1.5.3 book - Part 91 of 184Mahmoud Samir Fayed
 
The Power of Decorators in Python [Meetup]
The Power of Decorators in Python [Meetup]The Power of Decorators in Python [Meetup]
The Power of Decorators in Python [Meetup]Haim Michael
 
Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]
Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]
Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]RootedCON
 
Functions IN CPROGRAMMING OF ENGINEERING.pptx
Functions IN CPROGRAMMING OF ENGINEERING.pptxFunctions IN CPROGRAMMING OF ENGINEERING.pptx
Functions IN CPROGRAMMING OF ENGINEERING.pptxvanshhans21102005
 

Similar to Defining Function In Python (20)

C SLIDES PREPARED BY M V B REDDY
C SLIDES PREPARED BY  M V B REDDYC SLIDES PREPARED BY  M V B REDDY
C SLIDES PREPARED BY M V B REDDY
 
BB_11_Futures & Options_Hull_Chap_12.pptx
BB_11_Futures & Options_Hull_Chap_12.pptxBB_11_Futures & Options_Hull_Chap_12.pptx
BB_11_Futures & Options_Hull_Chap_12.pptx
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...
 
Ai4 heuristic2
Ai4 heuristic2Ai4 heuristic2
Ai4 heuristic2
 
Testing in the World of Functional Programming
Testing in the World of Functional ProgrammingTesting in the World of Functional Programming
Testing in the World of Functional Programming
 
Mercury: A Functional Review
Mercury: A Functional ReviewMercury: A Functional Review
Mercury: A Functional Review
 
PHP in 2018 - Q4 - AFUP Limoges
PHP in 2018 - Q4 - AFUP LimogesPHP in 2018 - Q4 - AFUP Limoges
PHP in 2018 - Q4 - AFUP Limoges
 
Android Refactoring
Android RefactoringAndroid Refactoring
Android Refactoring
 
The Ring programming language version 1.5 book - Part 2 of 31
The Ring programming language version 1.5 book - Part 2 of 31The Ring programming language version 1.5 book - Part 2 of 31
The Ring programming language version 1.5 book - Part 2 of 31
 
Derivatives Binomial Option Pricing Model Examples
Derivatives  Binomial  Option  Pricing  Model  ExamplesDerivatives  Binomial  Option  Pricing  Model  Examples
Derivatives Binomial Option Pricing Model Examples
 
The Ring programming language version 1.7 book - Part 87 of 196
The Ring programming language version 1.7 book - Part 87 of 196The Ring programming language version 1.7 book - Part 87 of 196
The Ring programming language version 1.7 book - Part 87 of 196
 
The Ring programming language version 1.10 book - Part 15 of 212
The Ring programming language version 1.10 book - Part 15 of 212The Ring programming language version 1.10 book - Part 15 of 212
The Ring programming language version 1.10 book - Part 15 of 212
 
Simplify writing code with deliberate commits
Simplify writing code with deliberate commitsSimplify writing code with deliberate commits
Simplify writing code with deliberate commits
 
C Programming Homework Help
C Programming Homework HelpC Programming Homework Help
C Programming Homework Help
 
All I know about rsc.io/c2go
All I know about rsc.io/c2goAll I know about rsc.io/c2go
All I know about rsc.io/c2go
 
Topological sort
Topological sortTopological sort
Topological sort
 
The Ring programming language version 1.5.3 book - Part 91 of 184
The Ring programming language version 1.5.3 book - Part 91 of 184The Ring programming language version 1.5.3 book - Part 91 of 184
The Ring programming language version 1.5.3 book - Part 91 of 184
 
The Power of Decorators in Python [Meetup]
The Power of Decorators in Python [Meetup]The Power of Decorators in Python [Meetup]
The Power of Decorators in Python [Meetup]
 
Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]
Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]
Ilfak Guilfanov - Decompiler internals: Microcode [rooted2018]
 
Functions IN CPROGRAMMING OF ENGINEERING.pptx
Functions IN CPROGRAMMING OF ENGINEERING.pptxFunctions IN CPROGRAMMING OF ENGINEERING.pptx
Functions IN CPROGRAMMING OF ENGINEERING.pptx
 

Recently uploaded

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

Defining Function In Python

  • 1. #Date 7th Dec 2015. #Today we are going to perform following functions. #Lets define a function to convert dollar to pakistan ruppe. def Dollar_To_Ruppe(R): return(R*105.33) print Dollar_To_Ruppe(5) print Dollar_To_Ruppe(10) #Lets define a function to convert F to C & C to F. def Farenheit_To_Celsius(F): return(F-32)*5/9 print Farenheit_To_Celsius(5) print Farenheit_To_Celsius(10) def Celsius_To_Farenheit(C): return(C*9/5+32) print Celsius_To_Farenheit(5) print Celsius_To_Farenheit(10) #Now lets define a function to find area of rectangle,triangle,circle. def Area_of_rectangle(L,W): return(L*W) print Area_of_rectangle(5,5) def Area_of_triangle(b,h): return(1/2*b*h) print Area_of_triangle(2,2) def Area_of_circle(r): return 3.14*(r*r) print Area_of_circle(5) #Now we are going to define a function to calculate the circumference of a circle. def Circumference_of_circle(r): return 2*3.14*(r) print Circumference_of_circle(2) #Lets define a function to calculate the square of an integer. def square(n): return (n*n) print square(2) #Now we are going to define a function to calculate the cube of an integer. def cube(r): return(r*r*r) print cube(5)