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 296 views
4 answers 543 views
1 answer 234 views
1 answer 177 views
1 answer 134 views
...