Intern — Senior
Improving the readability of the division function
livecode
Task condition
It is necessary to refactor the provided code: make it more understandable, standardize the formatting, and give meaningful names to functions and variables.
def divide(numerator, denominator):
quotient = numerator / denominator
return quotient
def main():
first, second = 10, 3
print(divide(first, second))
if __name__ == "__main__":
main()