In Python, a variable name that ends with an underscore (_) is often used to avoid naming conflicts with Python keywords or with built-in function names. This convention is a guideline suggested by PEP 8, the Python Enhancement Proposal which provides guidelines and best practices on how to write Python code.