Python Forum

Full Version: tenPrint
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here is my Python 2.7 version of the old 10 Print program.

import random

slash1 = '\\'
slash2 = '/'
slash3 = '|'
slash4 = '-'

while True:
    print random.choice([slash1, slash2, slash3, slash4]),