medium
Refactor Code for Readability
Improve the structure and naming conventions of a given Python function.
📝 提示内容
Refactor the following Python function to improve readability and adhere to PEP 8 standards. Rename variables to be descriptive, add docstrings, and simplify complex logic where possible:
def calc(a, b, c):
if c > 0:
return a * b
else:
return a + b