How to print a list word by word without a loop in Python

1 Answer

0 votes
lst = ['python', 'java', 'c', 'c++', 'c#']

print(*lst, sep="\n")



'''
run:

python
java
c
c++
c#

'''

 



answered Feb 9, 2022 by avibootz

Related questions

1 answer 148 views
4 answers 296 views
1 answer 202 views
4 answers 543 views
1 answer 177 views
2 answers 244 views
2 answers 242 views
...