Post History
Replace print loops by list unpacking If you want to print elements of a list one per line, the straightforward way to do it is a loop: for i in l:print(i) But this can be shortened using list...
Answer
#1: Initial revision
# Replace print loops by list unpacking If you want to print elements of a list one per line, the straightforward way to do it is a loop: ``` for i in l:print(i) ``` But this can be shortened using list unpacking: ``` print(*l,sep="\n") ``` Note that despite the extra `sep` this is still one character shorter.