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

 

multiplesOfThree


multiplesOfThree(x) - Give a positive integer x, return a list of all of the positive integers that are multiples of 3 and less than or equal to x.


multiplesOfThree(3) → [3]
multiplesOfThree(28) → [3, 6, 9, 12, 15, 18, 21, 24, 27]
multiplesOfThree(2) → []

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

def multiplesOfThree(upperBound):

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

Post-solution available

Copyright Nick Parlante 2017 - privacy