How to print list as separate words in Python

1 Answer

0 votes
lst = ['python', 'java', 'c', 'c++', 'c#', 'php']
 
print(*lst, sep="\n")
 
 
 
'''
run:
 
python
java
c
c++
c#
php
 
'''

 



answered Apr 8, 2022 by avibootz
...