I am working on lists of list
input:
x = [['a','a','a'],['b','b','b'],['c','c','c'],['d','d','d']]
and am looking for an output:
s = ['a_b_c_d','a_b_c_d','a_b_c_d']
Kindly let me know how can I do this using list comprehension.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
… although @aix’s list comprehension is more list-comprehensible.