Python data store from while loop in the array
This tutorial Python how to datastore from while loop in the array. here this example python in-build method append use. append() method in python adds a single item to the existing list.
Example
results = []
start = 1
end = 10
while(start < end):
results.append(start)
start += 1
print(results)
Output
[1, 2, 3, 4, 5, 6, 7, 8, 9]