0 out of 68 challenges solved

Generate a dictionary of squared numbers

def generate_dictionary(n):
    """
    Generates a dictionary containing (i, i*i) pairs for each integral number between 1 and n (both inclusive).

    Args:
    n (int): The input number.

    Returns:
    dict: The generated dictionary.
    """
    # TODO: Implement the generate_dictionary function
    pass