I defined a function by: input : two numbers l,k output: the number k in base l
Code:-
def base(k,l): result=\'\' while k!=0: