Sha256: 9a02bf72a8e629108534bd8429fac067b3d604a954402c26a333c10e20ddadd7
Contents?: true
Size: 434 Bytes
Versions: 10
Compression:
Stored size: 434 Bytes
Contents
{{works with|Python|2.4}} print "Hello world!" The same using sys.stdout import sys sys.stdout.write("Hello world!\n") In Python 3.0, print is changed from a statement to a function. {{works with|Python|3.0}} (And version 2.X too). print("Hello world!") '''An easter egg''' The first two examples print <code>Hello, world!</code> once, and the last one prints it twice. import __hello__ import __phello__ import __phello__.spam
Version data entries
10 entries across 7 versions & 1 rubygems