Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print list items vertically

# To print a list of string vertically
my_list = ["A","B","C"] 
print('
'.join(my_list))

# Result:
# A
# B
# C
 
PREVIOUS NEXT
Tagged: #python #print #list #items #vertically
ADD COMMENT
Topic
Name
9+7 =