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

 

sumSquaresBetween


Find the sum of the perfect squares between a and b inclusive. Both a and b represent the squared values. Assume a <= b, and both a and b are at least 0. e.g. sumSquaresBetween(1,10) is 1 + 4 + 9 which is 14


sumSquaresBetween(30, 101) → 330
sumSquaresBetween(1, 10) → 14
sumSquaresBetween(5, 10) → 9

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

def sumSquaresBetween(a,b):

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