def root_(radicand, index, printed=False):
    """Get the nth root of a number."""
    # Example: The square root of a number can be gotten by raising that
    # number to the power of 1/2.
    if radicand < 0:
        root = f'{(radicand*-1)**(1/index)}i'
    else:
        root = radicand**(1/index)
    if printed:
        print(root)
    else:
        return root