Mastering Python Naming Conventions and Scope
Learn the fundamental rules of Python name resolution and variable scope to write clean, readable code free of common naming conflicts.
-
💬
Instrutor de IA
Pergunte sobre qualquer aula e receba uma resposta clara na hora, quando quiser. -
🕐
Comece quando quiser
Sem horários nem prazos: aprenda no seu ritmo, quando quiser. -
🌐
Em português
Aulas, tarefas e certificado: tudo totalmente no seu idioma.
Sobre este curso
Writing Python code involves choosing names for variables, functions, and classes, but accidentally using reserved identifiers or built-in names can lead to confusing errors and difficult-to-debug programs.
This course teaches you how the Python interpreter resolves names, helping you understand the scope rules that govern your code. You will master best practices for naming objects and learn how to avoid shadowing critical built-in functions, significantly improving your code quality and reliability.
What you'll learn:
* Understand the concept of name resolution and the scope hierarchy in Python, including the LEGB rule.
* Learn to identify and avoid shadowing Python's reserved keywords and built-in functions (e.g., list, str, sum).
* Apply standard Python naming conventions (snake_case) for variables and functions to enhance code readability.
* Practice debugging skills by identifying and fixing common scope-related errors in existing Python scripts.
* Configure simple code quality tools (linters) to automatically flag potential naming conflicts and shadowed builtins.
The course begins with an introduction to Python variables and data types, moving quickly into the rules of scope and the importance of the built-in namespace. It concludes with practical exercises focused on implementing robust naming conventions and using modern code quality practices.
This course is perfect for new Python programmers and those transitioning from other languages who need a solid foundation in Python's unique scope and naming rules. No prior programming experience is required.
Start writing professional, error-free Python code today.
O que você vai receber
-
📜
Certificado de conclusão
Adicione ao seu perfil do LinkedIn -
💬
Tutor AI pessoal
Travou em uma aula? Pergunte ao seu tutor integrado qualquer coisa, a qualquer hora. -
♾️
Acesso vitalício
Volte quando quiser, sem expirar -
📱
Celular ou computador
Funciona em qualquer dispositivo -
💸
Reembolso em 14 dias
Sem perguntas -
⚡
Curto e focado
2 h 42 min de conteúdo prático
Avaliações
Ainda não há avaliações — seja o primeiro a compartilhar sua experiência.
Perguntas frequentes
O que preciso para fazer este curso? +
Só um celular ou computador com internet. Sem instalações nem hardware especial.
Como faço para pagar? +
Com cartão via Stripe. Não guardamos dados do cartão — o Stripe processa com segurança.
Posso pedir reembolso? +
Sim — reembolso integral em 14 dias, sem perguntas.
Por quanto tempo terei acesso? +
Para sempre. Uma vez comprado, o curso é seu para revisar quando quiser.
Vou receber um certificado? +
Sim. Ao concluir, você recebe um certificado que pode adicionar ao seu perfil do LinkedIn.
Feito para profissionais em
Tecnologia
Design
Finanças
Marketing
Saúde
Educação
Hotelaria
Indústria