SlideShare a Scribd company logo
1 of 3
Download to read offline
Functions
Python Tutorial
by Menard Maranan
“Function”
XFunction
What is a Function?
>>>In Python, a Function can be
a collection of code/s to make
our codes organized.
>>>Functions commonly takes an
Input and returns an Output.
“Function”
XFunction
Why use Functions?
>>>If you don’t want to type
the same code over and over
again, use functions.
>>>Just code them once, and you
can forget about it while still
use its functionality.

More Related Content

More from Menard Maranan

Python return statement
Python return statementPython return statement
Python return statementMenard Maranan
 
Python try except (menard maranan)
Python try except (menard maranan)Python try except (menard maranan)
Python try except (menard maranan)Menard Maranan
 
Python packages (menard maranan)
Python packages (menard maranan)Python packages (menard maranan)
Python packages (menard maranan)Menard Maranan
 
Python modules (menard maranan)
Python modules (menard maranan)Python modules (menard maranan)
Python modules (menard maranan)Menard Maranan
 
Python inheritance (menard maranan)
Python inheritance (menard maranan)Python inheritance (menard maranan)
Python inheritance (menard maranan)Menard Maranan
 
Python class (menard maranan)
Python class (menard maranan)Python class (menard maranan)
Python class (menard maranan)Menard Maranan
 
Python while loops (menard maranan)
Python while loops (menard maranan)Python while loops (menard maranan)
Python while loops (menard maranan)Menard Maranan
 
Python if else statements (menard maranan)
Python if else statements (menard maranan)Python if else statements (menard maranan)
Python if else statements (menard maranan)Menard Maranan
 
Python tuples (menard maranan)
Python tuples (menard maranan)Python tuples (menard maranan)
Python tuples (menard maranan)Menard Maranan
 
Python sets (menard maranan)
Python sets (menard maranan)Python sets (menard maranan)
Python sets (menard maranan)Menard Maranan
 
Python dictionaries (menard maranan)
Python dictionaries (menard maranan)Python dictionaries (menard maranan)
Python dictionaries (menard maranan)Menard Maranan
 
Python nested lists (menard maranan)
Python nested lists (menard maranan)Python nested lists (menard maranan)
Python nested lists (menard maranan)Menard Maranan
 
Python lists (menard maranan)
Python lists (menard maranan)Python lists (menard maranan)
Python lists (menard maranan)Menard Maranan
 
Python data structures (menard maranan)
Python data structures (menard maranan)Python data structures (menard maranan)
Python data structures (menard maranan)Menard Maranan
 
Python string formatting (menard maranan)
Python string formatting (menard maranan)Python string formatting (menard maranan)
Python string formatting (menard maranan)Menard Maranan
 
Python comments (menard maranan)
Python comments (menard maranan)Python comments (menard maranan)
Python comments (menard maranan)Menard Maranan
 
Python indexing (menard maranan)
Python indexing (menard maranan)Python indexing (menard maranan)
Python indexing (menard maranan)Menard Maranan
 
Slides python booleans (menard maranan)
Slides   python booleans (menard maranan)Slides   python booleans (menard maranan)
Slides python booleans (menard maranan)Menard Maranan
 
Slides python numbers (menard maranan)
Slides   python numbers (menard maranan)Slides   python numbers (menard maranan)
Slides python numbers (menard maranan)Menard Maranan
 

More from Menard Maranan (20)

Python return statement
Python return statementPython return statement
Python return statement
 
Python try except (menard maranan)
Python try except (menard maranan)Python try except (menard maranan)
Python try except (menard maranan)
 
Python packages (menard maranan)
Python packages (menard maranan)Python packages (menard maranan)
Python packages (menard maranan)
 
Python modules (menard maranan)
Python modules (menard maranan)Python modules (menard maranan)
Python modules (menard maranan)
 
Python inheritance (menard maranan)
Python inheritance (menard maranan)Python inheritance (menard maranan)
Python inheritance (menard maranan)
 
Python class (menard maranan)
Python class (menard maranan)Python class (menard maranan)
Python class (menard maranan)
 
Python for loops
Python for loopsPython for loops
Python for loops
 
Python while loops (menard maranan)
Python while loops (menard maranan)Python while loops (menard maranan)
Python while loops (menard maranan)
 
Python if else statements (menard maranan)
Python if else statements (menard maranan)Python if else statements (menard maranan)
Python if else statements (menard maranan)
 
Python tuples (menard maranan)
Python tuples (menard maranan)Python tuples (menard maranan)
Python tuples (menard maranan)
 
Python sets (menard maranan)
Python sets (menard maranan)Python sets (menard maranan)
Python sets (menard maranan)
 
Python dictionaries (menard maranan)
Python dictionaries (menard maranan)Python dictionaries (menard maranan)
Python dictionaries (menard maranan)
 
Python nested lists (menard maranan)
Python nested lists (menard maranan)Python nested lists (menard maranan)
Python nested lists (menard maranan)
 
Python lists (menard maranan)
Python lists (menard maranan)Python lists (menard maranan)
Python lists (menard maranan)
 
Python data structures (menard maranan)
Python data structures (menard maranan)Python data structures (menard maranan)
Python data structures (menard maranan)
 
Python string formatting (menard maranan)
Python string formatting (menard maranan)Python string formatting (menard maranan)
Python string formatting (menard maranan)
 
Python comments (menard maranan)
Python comments (menard maranan)Python comments (menard maranan)
Python comments (menard maranan)
 
Python indexing (menard maranan)
Python indexing (menard maranan)Python indexing (menard maranan)
Python indexing (menard maranan)
 
Slides python booleans (menard maranan)
Slides   python booleans (menard maranan)Slides   python booleans (menard maranan)
Slides python booleans (menard maranan)
 
Slides python numbers (menard maranan)
Slides   python numbers (menard maranan)Slides   python numbers (menard maranan)
Slides python numbers (menard maranan)
 

Recently uploaded

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Python functions (menard maranan)