Why use Functions in Python?  @cbtnuggets
Why use Functions in Python?  @cbtnuggets
CBT Nuggets | Why use Functions in Python? @cbtnuggets | Uploaded 1 year ago | Updated June 07 2023
CBT Nuggets trainer John McGovern covers functions in Python. This video is part of a course that covers Python programming language basics that network engineers should know. If you find this video helpful, consider watching our entire Python Functions Tutorial course: https://training.cbt.gg/urp

A Python function can be understood as a group of code. It can be any type of code — ranging from something exceedingly simple that produces a single result to a highly complicated series of information pulls and processes that result in a larger result. Some functions are built into the Python library. Other functions are developed by third parties and can be incorporated or introduced to your instance of Python. There are also custom functions that you write yourself for unique purposes.

What functions do is allow code to be reusable. Using functions makes your code modular – meaning it can be applied in other projects and in different contexts. Written properly, code can be general, rather than specific. If you plan ahead and write functions, you can avoid repeating yourself, and instead write very little code and just tweak and modify it each time you paste it into a new use case.

0:00 – Introduction: Python functions, what they are and why they're helpful
0:15 – Defining a function in Python
0:35 – Three different types of functions: built-in, 3rd party, custom
1:00 – Why bother writing a function, if it's simply a group of code?
1:15 – One of programming's most important rules is DRY: Don't Repeat Yourself
1:35 – Functions always return a result
2:15 – First-hand example of writing a Python function
7:40 – Outro: what you can expect from future videos in this series


*Watch this entire Python Functions Tutorial course:* https://training.cbt.gg/urp

*Not a CBT Nuggets subscriber? Start your free week:* https://www.cbtnuggets.com/signup

*Check out John's other courses:* https://www.cbtnuggets.com/trainers/john-mcgovern

New IT Training releases: https://training.cbt.gg/x85
-----------------
Connect with CBT Nuggets for the latest in IT training:
• Twitter - https://twitter.com/CBTNuggets
• Facebook - http://facebook.com/CBTNuggets
• Instagram - http://instagram.com/CBTNuggets
• LinkedIn - https://www.linkedin.com/company/cbt-nuggets

#python #pythonfunctions #visualstudio #pythonlibraries #ittraining #itcertifications #cbtnuggets
Why use Functions in Python? @cbtnuggetsWill there be a new CCNA in 2023? @cbtnuggetsWhat are the Basics of APIs? @cbtnuggetsHow to Create Pages and Set Up Routes in a React App @cbtnuggetsOSI Reference Model & TCP/IP Protocol Stack #shorts @cbtnuggetsWhat is Azure Cosmos DB? @cbtnuggetsWhat is Cisco Unified Communications Manager Express? @cbtnuggets4 Most Difficult Security Certs #shorts @cbtnuggetsHow to Create PostgreSQL Tables with pgAdmin for Beginners in (about) 1 hour @cbtnuggetsHow to Secure Kubernetes GUIs @cbtnuggetsHow to Connect Firebase Auth to an Angular App @cbtnuggetsNew IT Training Courses at CBT Nuggets @cbtnuggetsWhat is Business Continuity and Disaster Recovery Planning? @cbtnuggetsNetwork Commands You Should Know #shorts @cbtnuggetsWhat is H.323 and H.323 Protocol @cbtnuggetsWhy use Recoil in React? | Atoms and Selectors @cbtnuggetsTCP/IP Well Known Ports | CCNA @cbtnuggetsWhat are Azure Availability Zones? @cbtnuggets3 Rules of Cabling @cbtnuggetsWhy Storybook React Makes Building UI Components Easy @cbtnuggetsDifference between a Layer 3 Switch and Router? - Part 2 @cbtnuggetsDifference between a Layer 3 Switch and Router? - Part 1 @cbtnuggetsNew IT Training Courses at CBT Nuggets @cbtnuggetsHow to Check Which Services are Running on a Network using Port Discovery @cbtnuggetsCisco CCNP Exam Updates in 2023 @cbtnuggets6 weeks to study for the CCNA! @cbtnuggetsWhat are the Basics of Jest Syntax? | Testing React Components with Jest | React Testing Library @cbtnuggetsSwitch vs Hub #shorts @cbtnuggetsHow to Effectively Test Your CUCM Dial Plan | Cisco Unified Communications Manager (CUCM) @cbtnuggetsNew IT Training Courses at CBT Nuggets @cbtnuggetsHow to Create Minecraft in Python and Panda3D @cbtnuggetsIntroduction to Cisco Collaboration Technologies and Solutions | Cisco CCT Collaboration @cbtnuggetsWhat is Redux? Why use Redux? @cbtnuggetsHacker Tools, Techniques, and Incident Handling SEC504 #shorts @cbtnuggetsHack-Proof Your Wi-Fi: How to Design a Strong Wireless Network with Authentication & Encryption @cbtnuggetsClasses and Objects in Python Explained @cbtnuggetsHub vs Router #shorts @cbtnuggetsWhat is Power over Ethernet? @cbtnuggetsHow does DHCP work in an Enterprise? @cbtnuggetsSwitch vs Router #shorts @cbtnuggetsHow to use Moment.js in React | Moment Library in React | Introduction to Moment 🕘 @cbtnuggetsMicrosoft Azure Administrator Associate AZ-104 Quiz #shorts @cbtnuggetsWhat are the Principles of Zero Trust Security? @cbtnuggetsWhat are Dial Peer Wildcards? | Cisco Cube Configuration @cbtnuggetsPrimary Functions of a Router and Switch #shorts @cbtnuggetsHow to Build a React Reusable Calendar Component @cbtnuggetsWhat are the Different Types of Servers? | Server Form Factors @cbtnuggets10 Most Used Linux Commands & download FREE Linux Command Cheat Sheet #shorts @cbtnuggetsNew IT Training Courses | CBT Nuggets @cbtnuggetsHow to Identify Digital Evidence | Introduction to Digital Forensics @cbtnuggets

Why use Functions in Python? @cbtnuggets