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

 

makeList


Complete the function so that it returns a list that contains all the integers in the range [n1, n2]. If n1 > n2, then it returns an empty list.


makeList(4, 7) → [4, 5, 6, 7]
makeList(13, 13) → [13]
makeList(21, 10) → []

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

def makeList( n1, n2 ):

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

Copyright Nick Parlante 2017 - privacy