I have a list of list like that :
liste = [["1-2","3-4"],["5-6"]]
I would like to write in a file like that :
1-2,3-4|5,6
I try this :
for l in liste:
sortie.write(",".join(l)+"|")
but it writes:
1-2,3-4|5,6|
How can I delete (or don't write) the last pipe ?