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 166 views
4 answers 311 views
1 answer 218 views
4 answers 561 views
1 answer 195 views
2 answers 273 views
2 answers 257 views
...