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

 

konstans@stuy.edu all > specialSumExclusive
prev  |  next  |  chance

Write a function that calculates the sum of all of the numbers between 0 and the parameter n. Only count the values that are multiples of 5 and also multiples of 7.


specialSumExclusive(5) → 0
specialSumExclusive(7) → 0
specialSumExclusive(35) → 35

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

def specialSumExclusive(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: 5

Copyright Nick Parlante 2017 - privacy