#%s - string
#%d - decimal
#%f - float

a = 'teste1'
b = 'teste2'
'%s = %s' % (a, b)
#teste1 = teste2

a + ' is a test'
#or
'%s is a test' % (a)

print 'test %f' % 50.24625
#test 50.246250

print 'test %.2f' % 50.24625
#test 50.24

print 'test %+.2f' % 50.24625
#test +50.24


