Different way to output string: print and sys.stdout.write
X = 99 print X import sys sys.stdout.write(str(X) + '\n')