id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

dton


Write a function that accepts two integers, a value (which is in decimal by default), and a new base. Return a string that is the representation of that value in the new base.


dton(4096, 2) → '1000000000000'
dton(4096, 4) → '1000000'
dton(4096, 8) → '10000'

...Save, Compile, Run (ctrl-enter)

def dton(d,n):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy