I have the list:
mylist = ["8 - 9-", "7 - 6-", "4-"]
How would I remove the last "-" from each element in mylist?
so that the output is
mylist = ["8 - 9", "7 - 6", "4"]
edit: Originally I had a space before the "-" but that should not have been there. Apologies.