0
Create a list of outputs of a while(Python)
I want to create a list made of the outputs of a while process. Ex. i=3 while i>0: print(i) i-1 The list would be like [3,2,1]
2 ответов
+ 3
list = []
i = 3
while i>0:
list.append(i)
i -= 1
+ 2
Guido Parlatore First try to do by yourself if you want to learn coding because no-one can available every time to do your work.