python change base function code example Example: python change base function >>>import numpy as np >>>np.base_repr(10, base=3) '101'