



from __future__ import annotations





def 	__snake_case      (     _UpperCAmelCase							):
    if len(_UpperCAmelCase							) == 0:
        raise ValueError('''find_min() arg is an empty sequence'''							)
    __a					=							nums[0]
    for num in nums:
        __a					=							min(_UpperCAmelCase  ,					_UpperCAmelCase							)
    return min_num


if __name__ == "__main__":
 import doctest

 doctest.testmod(verbose=True)










def 	__snake_case      (     _UpperCAmelCase							):
    __a					=							1
    __a					=							0
    __a					=							1
    __a					=							1
    __a					=							3
    __a					=							3
    __a					=							limit
    __a					=							0

    __a					=							''''''
    while counter != decimal + 1:
        if 4 * q + r - t < n * t:
            result += str(_UpperCAmelCase							)
            if counter == 0:
                result += "."

            if decimal == counter:
                break

            counter += 1
            __a					=							10 * (r - n * t)
            __a					=							((10 * (3 * q + r)) // t) - 10 * n
            q *= 10
            __a					=							nr
        else:
            __a					=							(2 * q + r) * l
            __a					=							(q * (7 * k) + 2 + (r * l)) // (t * l)
            q *= k
            t *= l
            l += 2
            k += 1
            __a					=							nn
            __a					=							nr
    return result





def 	__snake_case      (     ):
    print(f'{calculate_pi(50							) = }'							)
    import doctest

    doctest.testmod()


if __name__ == "__main__":
 main()





