Which naming convention does Python use?
Python uses snake_case for variables, functions and module names (get_user_data), PascalCase for class names, and UPPER_SNAKE_CASE for constants. This is codified in PEP 8, Python's official style guide, and enforced by most Python linters out of the box.
Answered in
Programming Naming Conventions Explained: camelCase, PascalCase, snake_case & MoreLearn the difference between camelCase, PascalCase, snake_case, kebab-case and UPPER_SNAKE_CASE — which languages use which, and how to name things cleanly.
Read the full analysisOther questions this article answers
More development best practices questions
- How many outage reports did Claude and ChatGPT get on July 14, 2026?
- What did Anthropic's own status page say about the July 14 Claude outage?
- Did Claude have more outages after July 14?
- What did ChatGPT's status checker say was wrong?
- Is this outage pattern actually unusual for AI providers?
- What GitHub Actions vulnerability did the attacker exploit?
- How many npm packages were compromised, and how widely were they used?
- What did the malicious payload actually do?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Development Best Practices beat.