answered 2023-04-26 14:54:42 +0200
Try this:
for p in L: print(DyckWord(p).to_path_string()) print('-'*len(p))