Python Fundamentals: Understanding Scope and Name Resolution
Learn the essential LEGB rule to understand how Python resolves variable and function names, preventing confusing naming conflicts and scope errors.
-
💬
Instructor de IA
Pregunta sobre cualquier lección y recibe una respuesta clara al instante, cuando quieras. -
🕐
Empieza cuando quieras
Sin horarios ni fechas límite: aprende a tu ritmo, cuando quieras. -
🌐
En español
Lecciones, tareas y certificado: todo completamente en tu idioma.
Sobre este curso
Python relies on a strict set of rules to determine where to find names (variables, functions, classes). Failing to understand these rules is a primary source of confusing bugs for new developers.
This course demystifies Python's name resolution process. You will gain a clear, mental model of the Local, Enclosing, Global, and Built-in (LEGB) scopes, allowing you to write cleaner, more predictable code and debug issues quickly.
What you'll learn:
* Understand the core concept of variable scope and name binding in Python.
* Master the LEGB rule for determining the precise order of name lookup.
* Analyze the unique role of Python's built-in scope (containing names like print and len).
* Practice identifying and resolving common scope-related bugs, including variable shadowing.
* Apply the use of global and nonlocal keywords to modify names outside the local scope.
* Learn how modern Python features like list comprehensions and lambda functions interact with scope.
The course begins by defining fundamental terminology around names and objects, then systematically breaks down each layer of the LEGB rule with practical, written exercises. We conclude with techniques for debugging and avoiding complex scope issues in large programs.
This course is designed for absolute beginners to Python programming. No prior knowledge of programming concepts or scope is required.
Start building a robust foundation for reliable Python development today.
Lo que obtendrás
-
📜
Certificado de finalización
Añádelo a tu perfil de LinkedIn -
💬
Tutor AI personal
¿Atascado en una lección? Pregúntale a tu tutor integrado lo que quieras, cuando quieras. -
♾️
Acceso de por vida
Vuelve cuando quieras, sin caducidad -
📱
Teléfono o computadora
Funciona en cualquier dispositivo -
💸
Reembolso de 14 días
Sin preguntas -
⚡
Breve y enfocado
3 h de contenido práctico
Reseñas
Aún no hay reseñas — sé el primero en compartir tu experiencia.
Preguntas frecuentes
¿Qué necesito para tomar este curso? +
Solo un teléfono o computadora con internet. Sin instalaciones ni hardware especial.
¿Cómo pago? +
Con tarjeta a través de Stripe. No almacenamos datos de tarjeta — Stripe los gestiona de forma segura.
¿Puedo obtener un reembolso? +
Sí — reembolso completo en 14 días, sin preguntas.
¿Por cuánto tiempo tendré acceso? +
Para siempre. Una vez comprado, el curso es tuyo para revisarlo cuando quieras.
¿Obtendré un certificado? +
Sí. Al finalizar recibirás un certificado que puedes añadir a tu perfil de LinkedIn.
Diseñado para profesionales en
Tecnología
Diseño
Finanzas
Marketing
Salud
Educación
Hostelería
Manufactura