Buat array dari 1 hingga n python
a_list = list(range(1, 5))
print(a_list)
[1,2,3,4,5]
Successful Swan
a_list = list(range(1, 5))
print(a_list)
[1,2,3,4,5]
nList = list(range(1, n+1))