Different way to output string : Stdout stderr : Development PYTHON examples


PYTHON examples » Development » Stdout stderr »

 

Different way to output string


Different way to output string: print and sys.stdout.write

X = 99

print X

import sys
sys.stdout.write(str(X'n')


           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Development
» Stdout stderr