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

 

burns@bxscience.edu > arithmeticList
prev  |  next  |  chance

arithList: complete the following function which returns a list containing the first n elements of an arithmetic sequence when given the first element of the sequence and common difference. Name the list arithList. Mildly Spicy. Consider all possibilities.


arithmeticList(2, 4, 2) → [4, 6]
arithmeticList(3, 5, 5) → [5, 10, 15]
arithmeticList(4, 6, 3) → [6, 9, 12, 15]

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

def arithmeticList(n, beginElement, commonDiff):

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: 100

Copyright Nick Parlante 2017 - privacy