I can't find what's wrong but my next code doesn't work:
if finalsum!=0 and (x[0]!='-' or x[0]!='+'):
Do something...
I need to add 2 more conditions If I try only one AND, the code works, if I add the OR, nothing happens.
Also I've tried few more ways to write it and it doesn't work as well.