Next: , Up: Printing   [Contents][Index]


14.17.1 print

The print statement prints the given string to the standard output. print outputs text strings verbatim. It can be invoked using two alternative syntaxes, which are equivalent:

print (str);
print str;

print is simple, but fast. It is good to use it in simple cases where the information to print out doesn’t require any kind of formatting and styling.