symbolid=['+', '-'] for s1 in symbolid: for s2 in symbolid: print(s1+s2)