Your magical assistant for transforming messy code into clean, efficient masterpieces
def calculate_sum(x,y):
    s=0
    for i in range(x,y+1):
        s+=i
    return s
# bad spacing and naming
                    def calculate_range_sum(start: int, end: int) -> int:
    """Calculate the sum of integers in a range (inclusive)."""
    return sum(range(start, end + 1))
# Improved with type hints, docstring, and better naming