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

 

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

Make a list of integers of the first n even integers. They should be in increasing order. Do not use the range function.


makeListNEvens(0) → []
makeListNEvens(1) → [0]
makeListNEvens(3) → [0, 2, 4]

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

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

Copyright Nick Parlante 2017 - privacy