How to print a list of lists without brackets in Python

1 Answer

0 votes
list_of_lists = [['python', 'java'], ['c', 'c++', 'c#'], ['php', 'javascript']]

for item in list_of_lists:
    print(item[0], ', '.join(map(str, item[1:])))

'''
run:

python java
c c++, c#
php javascript

'''

 



answered Nov 14, 2017 by avibootz

Related questions

4 answers 311 views
4 answers 561 views
1 answer 251 views
1 answer 141 views
1 answer 200 views
...