How to print a list in one line with Python

1 Answer

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

for s in lst:
    print(s, end=" ")

'''
run:

python java c# c c++

'''

 



answered Mar 25, 2017 by avibootz

Related questions

1 answer 183 views
2 answers 238 views
1 answer 187 views
1 answer 205 views
2 answers 156 views
...