Python First-Class Functions Explained: Functions as Objects (دوال البايثون من الدرجة الأولى) #10

Опубликовано: 19 Июнь 2026
на канале: Intuidemy
24
1

In Python, "everything is an object," and functions are no exception! In this lesson, we explain why functions are called "First-Class Objects." We'll show you how to assign them to variables, pass them as arguments, and even store them in data structures like lists.

What you will learn
✅ What does "First-Class Object" mean in Python?
✅ Assigning functions to variables.
✅ Passing functions as arguments to other functions.
✅ Returning functions from other functions (Introduction to Closures).
✅ Storing functions in collections like Lists and Dictionaries.
✅ The difference between a function object and a function call.

🔔 Subscribe to Intuidemy for more step-by-step Python tutorials!

GitHub (Source Code): https://github.com/rubada/Learn-Pytho...
📺 Full NumPy Playlist:    • 02. Python Intermediate Course. Functions....  
The link below shows how to download a repository on your computer.
   • Github, Fork and Clone Repository.  

📍 Video Timeline:
00:00 - Channel Intro | مقدمة القناة
00:14 - Intro: Why functions are objects in Python (مقدمة: الفانكشن كـ أوبجكت)
01:10 - Method 1: Assigning a function to a variable (تعيين الفانكشن لمتغير)
02:05 - Important: Function Object vs. Function Call (الفرق بين الأوبجكت ومناداة الفانكشن)
03:15 - Method 2: Passing functions as arguments (تمرير الفانكشن كمعامل)
04:30 - Practical Example: Using functions inside other functions
05:45 - Method 3: Calling functions from within other functions
07:15 - Advanced: Returning a function from another function (Nested Functions)
08:30 - Visualizing the result: How return values flow
09:55 - Introduction to Nested Functions and Closures (Nested Functions تمهيد للـ
10:30 - Method 4: Storing functions in a List (تخزين الفانكشنز في قائمة)
11:35 - Practical Example: Accessing functions via List index
12:15 - Conclusion: Prep for Functional Programming (خاتمة وتمهيد للبرمجة الوظيفية)

#Python #PythonProgramming #FirstClassObjects #CodingConcepts #FunctionalProgramming #LearnCoding #بايثون #برمجة #تعلم_بايثون #Intuidemy