Answers for "python program to print list vertically without using loop"

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
1

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 "python program to print list vertically without using loop"

Python Answers by Framework

Browse Popular Code Answers by Language