I have this list:
boxes = [
'''
_ _ _ _ _
| |
| |
| 1st |
| box |
| |
|_ _ _ _ _|
''',
'''
_ _ _ _ _
| |
| |
| 2nd |
| box |
| |
|_ _ _ _ _|
''',
'''
_ _ _ _ _
| |
| |
| 3rd |
| box |
| |
|_ _ _ _ _|
''',
etc...]
And this is the way I want to display the elements of the list:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| | | | | |
| | | | | |
| 1st | | 2nd | | 3rd |
| box | | box | | box |
| | | | | |
|_ _ _ _ _| |_ _ _ _ _| |_ _ _ _ _|
Is there a way to do this without hardcoding the inline format? (The content of each box changes)
The only way I could think about is:
for x in boxes:
print(x, end=' ')
so I've tried doing this but it doesn't work, any ideas? Thank you!