Hi I am trying to figure out this problem I'm having where I for example
I enter "123" I get [1,2,3] but the problem is when I enter "1-23" I want to get [1,-2,3]
I cant figure out how to make it so that when it recognizes there is a negative it would make the next one a negative (by multiplying it by one)
if I delete the first for it only works for positives
heres my code (sorry I'm a python beginner)
listy = []
for i in a:
i + 1 = i * -1
for i in a:
listy.append(i)