Suppose we have a Python structure representing a table (whichever, e.g. a list of lists).
Is there an elegant way to programmatically copy that structure into the clipboard, so that it can be correctly pasted as a table, e.g. in Microsoft Word or Excel? I am looking preferably for a portable solution, otherwise specific solutions for MacOS, Linux and Windows would be appreciated.