How to Use def to Create Functions in Python - Simple Example
In this episode, we return to our Python playlist in order to show how to use “def” to create some simple functions in Python. Functions are a critical part of programming, and you will find that by using them, your code will become much better. Functions can return values, perform actions, and lots of other things. One use is that they can help you to refactor code so that your code is much more efficient and re-usable.
We’ll start with some very simple functions that just perform an action, then move on to a function that returns a value, and then show how a function can use another function.
Follow us on social media:
/ mackenziedataanalytics
/ seamacke
/ seamacke
/ psmackenzie
Get Microsoft Office including Access:
https://click.linksynergy.com/fs-bin/...
Got a YouTube Channel? I use TubeBuddy, it is awesome. Give it a try:
https://www.tubebuddy.com/seanmackenz...
/ seamacke
ETL Project? Contact me today!
Check out some of my earlier videos on Python Programming:
How to Use Array Methods in Python: • How to Use Array Methods in Python
Ggplot for Python; Use ggplot and plotnine to make charts in Python: • Ggplot for Python; Use ggplot and plo...
Learn how to implement if.. then.. else.. in Python in 10 minutes: • Learn how to implement if.. then.. el...
Python on Oracle DB - How to Use Python on Oracle Databases: • Python on Oracle DB - How to Use Pyth...
Excel to Access Using Python - Migrate Data Using Pandas, SQLalchemy python, and sqlalchemy-access: • Excel to Access Using Python Pandas
Pandas with Matplotlib - How to Create an Animated Scatter Diagram in Python: • Pandas with Matplotlib - How to Creat...
How to Create Summary Statistics Using Python Pandas | Covid 19 Data by ECDC Europe: • How to Create Summary Statistics in P...
How to Use Python to Query and Sort MS Access Data in a Pandas DataFrame: • How to Filter and Sort a Pandas DataF...
How to install Pandas in Python l Pandas accdb DataFrame: • How to Install Pandas in Python
Python on accdb - How to Use Python on MS Access Data: • Python on accdb - How to Use Python o...
python def, python def function, python function, python return value, python strings, functions in programming, programming functions, function values, python function programming, python tutorial for beginners, python basics, coding with python , sean mackenzie data analytics