For loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

For loop

How to put all the elements that outputs the for loop in the list

26th Oct 2022, 9:17 PM
Александр Ковяров
Александр Ковяров - avatar
1 Answer
+ 4
exists an append method for a list a= [] a.append(2) # a will be [2]
26th Oct 2022, 9:22 PM
KrOW
KrOW - avatar