snake_case

Writing a multi-word name in lower case with underscores between words, as in tell_story, the Python standard for functions and variables.

In more detail

PEP 8 recommends snake_case for functions, methods and variables, CapWords for classes and UPPER_CASE for constants. Linters such as ruff can warn when names break the convention.

Related terms

Taught in

References

Certification courses