I have a list of lists and I want to remove all brackets, commands etc. ("[],'")
a=3
c=[["A ",["| "]*a],
[" ",["|———"]*a],
["B ",["| "]*a],
[" ",["|———"]*a],
["C ",["| "]*a],
[" ",["|———"]*a]
]
for line in c:
print(*line, sep="")
I want output like this:
A | | |
|———|———|———
B | | |
|———|———|———
C | | |
|———|———|———
But I'm getting this output:
A ['| ', '| ', '| ']
['|———', '|———', '|———']
B ['| ', '| ', '| ']
['|———', '|———', '|———']
C ['| ', '| ', '| ']
['|———', '|———', '|———']
[Program finished]