Code: Select all
def base(number,base):
newnumber=[]
while number>0:
newnumber.insert(0,number%base)
number=number//base
return newnumberCode: Select all
def base(number,base):
newnumber=[]
while number>0:
newnumber.insert(0,number%base)
number=number//base
return newnumber