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