forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice > getTwoToThePowerOf
prev  |  next  |  chance

For a given input value N, find 2^N (Two to the power of N) . You must use a loop! ^_^

getTwoToThePowerOf(16) → 65536
getTwoToThePowerOf(6) → 64
getTwoToThePowerOf(5) → 32

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

def getTwoToThePowerOf(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