medium
Python Code Refactoring
Refactor a specific Python function for better readability.
📝 প্রম্পট বিষয়বস্তু
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]