Back to Browse

Python Function Tamil | Scope of Variable in Python Function #13

7 views
Mar 3, 2026
22:02

In this Python Function Tamil Tutorial, I explains the complete LEGB Rule in Python step by step in an easy and beginner-friendly way. ✨Pytorch Full Playlist: https://www.youtube.com/playlist?list=PLQSxmBosFogCoKZm33dOzmGaqn4UJF91z ✨Feature Engineering Playlist: https://www.youtube.com/playlist?list=PLQSxmBosFogDZtoK3OcEoxywbW4cEUGxs ✨Pandas Full Playlist: https://www.youtube.com/playlist?list=PLQSxmBosFogDfqhAR-J3MRMSAWM7lJdgx ✨Numpy Full Playlist: https://www.youtube.com/playlist?list=PLQSxmBosFogBMxAwAM2dnJz3gSZf9QWZ0 ✨Matplotlib Full Playlist: https://www.youtube.com/playlist?list=PLQSxmBosFogAb7PPOBTZUEM7aUDEYfXNl ✨Python Full Playlist: https://www.youtube.com/playlist?list=PLQSxmBosFogAOTl_SthIiZDPy-6xGzbF4 ⏱️ Timestamps: 00:00 Introduction: Scope LEGB Rule 00:18 LEGB Stands for 01:21 Understanding Local Scope 03:41 Understanding Global Scope 06:38 Understand LEGB Order 08:14 Define Enclosing Function 10:39 Define Enclosing Variable 13:29 Why None? 14:25 Once more: Understand LEGB Order 16:11 Why Student Function Give Error 18:55 One Last Time: Understand LEGB Order 21:05 Built-In Scope In this video, I clearly break down how Python searches for variables using the LEGB scope resolution order and why understanding scope is very important while working with functions. You will learn the difference between Local Scope and Global Scope, how Python handles variables inside nested functions, and what Enclosing Scope means with practical examples. I also explain common beginner confusions like why functions sometimes return None, and why certain functions produce errors due to scope issues. By the end of this tutorial, you will fully understand how Python finds variables using the LEGB Order (Local → Enclosing → Global → Built-in) and how to avoid scope-related errors in real programs. This tutorial is ideal for Python beginners, students, and anyone preparing for coding interviews or exams who wants a strong understanding of Python scope concepts. 👍 Like | 🔁 Share | 🔔 Subscribe for more Python tutorials in Tamil. ============================================================================= 🎯Welcome to Sivanu Jan YouTube Channel! I’m an MSc student in Data Science & AI, sharing my knowledge to help my community learn Artificial Intelligence, Machine Learning, Deep Learning, and Data Science — all from scratch, in தமிழில், and 100% FREE. 🎯 What you’ll find here: ✍TensorFlow tutorial for beginners in Tamil with simple, hands-on explanations ✍Python with Data Science full course in Tamil, from basics to advanced concepts ✍Machine Learning projects for beginners step by step in Tamil to build real-world skills ✍Deep Learning tutorial in Tamil with beginner-friendly breakdowns ✍Practical guides on Deep Learning in Tamil with real-world applications explained clearly 💡 My mission: To make AI education accessible in தமிழ் so you can learn AI, ML, and Data Science skills without spending a rupee — and apply them in real projects. 👉 If you want to start your AI journey today with free, beginner-friendly AI and Machine Learning tutorials in Tamil, hit Subscribe and join our growing learner community!

Download

1 formats

Video Formats

360pmp413.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Python Function Tamil | Scope of Variable in Python Function #13 | NatokHD