total = -10
print('Total:' + ['', '+'][total > 0] + str(total))
total = 0
print('Total:' + ['', '+'][total > 0] + str(total))
total = 10
print('Total:' + ['', '+'][total > 0] + str(total))
How to print the sign + of a digit for positive numbers in Python