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

 

makeListOneToN


Make a list of integers of all integers from 1 to n inclusive. They should be in increasing order. Do not use the range function.


makeListOneToN(0) → []
makeListOneToN(1) → [1]
makeListOneToN(3) → [1, 2, 3]

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

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