I have a Python list:
L1 = [['Hello', '.', 'My', 'name', 'is', 'Joe'],['Hola', '.', 'Mi', 'nombre', 'es', 'Joe']]
How do I print the list to get this output:
L1 = [['Hello', '.', 'My', 'name', 'is', 'Joe'],['Hola', '.', 'Mi', 'nombre', 'es', 'Joe']]
The same as what is in my .py
file?
A similar question appears for Go: Golang: print struct as it would appear in source code
But I do not understand it and if Python has anything similar.
For those wanting to know why, I need to print these lists to an HTML file. Due to limitations of programming interoperability and not wanting to over-engineer, this is easiest for me to use as code.