medium
Python Code Refactoring
Refactor a specific Python function for better readability.
📝 Contenu du Prompt
Refactor the following Python code to improve readability and adhere to PEP 8 standards. Add docstrings and type hints where appropriate. [Code will be provided by user]