Generating an ascending list of numbers of arbitrary length in python


Is there a function I can call that returns a list of ascending numbers? I.e., function(10) would return [0,1,2,3,4,5,6,7,8,9]?


You want range().

Answered By – Ignacio Vazquez-Abrams

Answer Checked By – Terry (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.