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

 

bryce.hulett@hotmail.com python_math_only > sum_cubes
prev  |  next  |  chance

Given a 2-digit number, return the sum of its digits cubed.


sum_cubes(23) → 35
sum_cubes(11) → 2
sum_cubes(33) → 54

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

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

Difficulty: 290

Copyright Nick Parlante 2017 - privacy