#!/usr/bin/python # NB: no 'strict' mode; python is fairly strict anyway import sys,time # python has to 'import' specific libs to use them token = ' ' # use 'token' to store the space; note no ';' endings for line in sys.stdin: # the line-eater setup print "Input line:", line # print input line; does the output differ from Perl version? values = line.split(token); # split on the token defined above for el in values: # loop over each value in the line (now in 'values' print ">", el # print out the word time.sleep(1) # what happens if you move this 1 tab to the right?