When I am printing the following informatiom It looks really ugly. The text display is very long and you cannot really read it.
Code:
import psutil
print("Disk: ", psutil.disk_partitions())
The output I get is:
Disk: [sdiskpart(device='C:\\', mountpoint='C:\\', fstype='NTFS', opts='rw,fixed'), sdiskpart(device='D:\\', mountpoint='D:\\', fstype='', opts='cdrom'), sdiskpart(device='E:\\', mountpoint='E:\\', fstype='', opts='cdrom'), sdiskpart(device='F:\\', mountpoint='F:\\', fstype='NTFS', opts='rw,fixed'), sdiskpart(device='H:\\', mountpoint='H:\\', fstype='NTFS', opts='rw,removable')]
In one long line! Is there a way to filter the output or display it on multiple lines?
Thanks for helping me :)