Python Programming Fundamentals | Python Functions

Published: 14 October 2024
on channel: Dan Kornas
573
15

🎓 Unlock personalized mentorship, early access to exclusive AI resources, and join a supportive learning community—sign up now for the AI Learning Membership at https://ailearninghub.io

-------------------------
In this video, you’ll learn how to work with functions in Python. We’ll cover how to define functions using the def keyword, pass parameters, return values, and even work with default parameters. You’ll also learn about more advanced topics like recursion, lambda functions, and handling variable-length arguments. By the end of this video, you’ll have a solid understanding of how to use functions to make your code more modular and reusable.

To start learning without installing Python locally, use Google Colab.
Introduction to Google Colab:    • Google Colab Basics  
Create a new Google Colab Notebook: https://colab.research.google.com/#cr...
Github Code: https://github.com/dankornas/ai-roadm...

Table of Contents:

0:00 Introduction to Python Functions
0:15 Defining a Function using def
0:29 Creating a Simple Greeting Function
1:17 Adding Parameters to a Function
2:14 Returning Values from Functions
2:30 Creating an Add Function
3:13 Using Default Parameter Values
4:15 Named Arguments for Clarity
4:26 Describing a Pet Function Example
6:02 Variable-Length Arguments (*args)
6:07 Making a Pizza Function with Multiple Toppings
8:30 Recursive Functions (Factorial Example)
9:54 Introduction to Lambda Functions
10:31 Creating a Simple Lambda Function
11:14 AI Learning Hub Membership

-------------------------

Social channels:
🐦Twitter:   / dankornas  
🌍LinkedIn:   / daniel-kornas  
🕵Facebook:   / dankornas  
📱Instagram:   / dankornas  
🧵 Threads: https://www.threads.net/@dankornas

-------------------------

📚 AI Books 📚
Introduction to Generative AI 👉 https://shorturl.at/3dSQz
Build a Large Language Model (From Scratch) 👉 https://shorturl.at/EFv4j

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.


On this page of the site you can watch the video online Python Programming Fundamentals | Python Functions with a duration of hours minute second in good quality, which was uploaded by the user Dan Kornas 14 October 2024, share the link with friends and acquaintances, this video has already been watched 573 times on youtube and it was liked by 15 viewers. Enjoy your viewing!