how can i make a list of number form 1 to a certain number? i want to make a script that can do things like below:
number=20
list=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
i don't know how do make this happens. is there certain function for auto produce the list, i am now typing it manually? i've try to google it, but most the answers are about seperating a number and make a list.like this
a='1234'
a.split(' ')
[1,2,3,4]