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

 

amgreyson@gmail.com > whatExponent
prev  |  next  |  chance

Given a number that is a power of the given base, determine the exponent. For example, given 64 is a power of 4, return 3.


whatExponent(64, 4) → 3
whatExponent(625, 5) → 4
whatExponent(128, 2) → 7

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

def whatExponent(aNumber, base):

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

Difficulty: 175

Copyright Nick Parlante 2017 - privacy