I want to test if a string has a negative leading character, and then delete that character if True.
I've tried:
value_a = "-50.1342"
temp_a = value_a.split(".") #needed for other purposes
if temp_a[0].startswith('-'):
del temp_a[0]
print temp_a
The result is an empty []. What could be the reason...?