I am searching for an easier way to remove the '-' in front of each string in a list. (only the first '-' if there is one in front of the string)
note_tmp = [
"-some-text",
"-other text",
"another-one",
"-text number four"
]
note_done = []
for note in note_tmp:
if note.startswith("-"):
note_done.append(note[1:])
else:
note_done.append(note)
print(note_done)
I thing this can be written much easier...
Thanks for your help ;)