Intermediate
Refactor Python Code
Improve the structure and readability of existing Python code.
📝 Contenu du Prompt
Review the following Python code snippet. Refactor it to improve readability and efficiency by applying PEP 8 guidelines, replacing magic numbers with named constants, and adding docstrings where necessary: [Insert code here]