python create array of numbers from 1 to n ruby code example Example: array of 1 to 100 python myList = list(range(1, 101))