Answers for "how to print a list vertically once with loop python"

1

python program to print list vertically without using loop

lst = [1,2,3,4,5]
print(*lst,end="\n")

#output
1
2
3
4
5
Posted by: Guest on April-05-2021
6

print list vertically in python with loop

# using * operator and sep = '\n'
scores = [11, 12, 13, 14, 15, 16]
print(*scores, sep = '\n')
Posted by: Guest on May-14-2020

Code answers related to "how to print a list vertically once with loop python"

Python Answers by Framework

Browse Popular Code Answers by Language