I have a question about how to create a list after the while loop. I want to put all the numbers I get from while loop into a list for example:
x=4
while(1):
print(x)
x=x+1
if x==8:break
then I get
4
5
6
7
I want to show these numbers in one list.