I was supposed to obtain an output like this when i run the command 'print(abide.description)' But the output I am obtaining is something like this. The entire string is shown in a single line which is making it quite difficult to read and interpret. How can I obtain the output as the picture above?
My code snippet:
print(abide.description)
The issue is that
abide.description
is returning bytes rather than a string. If you want it to print as a normal string, you can use thebytes.decode()
method to convert the bytes to a unicode string.For example: