tenhellos1.py


Below is the syntax highlighted version of tenhellos1.py from §1.1 Hello World.


#-----------------------------------------------------------------------
# tenhellos1.py
#-----------------------------------------------------------------------

import stdio

# Write 'Hello, World' to standard output ten times.

stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')
stdio.writeln('Hello, World')

#-----------------------------------------------------------------------

# python tenhellos1.py
# Hello, World
# Hello, World
# Hello, World
# Hello, World
# Hello, World
# Hello, World
# Hello, World
# Hello, World
# Hello, World
# Hello, World


Copyright © 2000–2015, Robert Sedgewick, Kevin Wayne, and Robert Dondero.
Last updated: Fri Oct 20 20:45:16 EDT 2017.