def estimatePiSquared(n):
    """
    Estimates that value of Pi^2 through a formula involving partial sums.
    n is the number of terms to be summed; the larger the more accurate the
    estimation of Pi^2 tends to be (but not always).
    """

    partialSum = 0    # Initializing

    # Implementation of the mathematical formula involving summing
    for k in range(1, n+1):
        partialSum += 1 / (k ** 2)
    estimate = 6*partialSum

    return estimate