# printVertical.py P.Conrad for CS5NM, 11/06/08 # print a word vertically # Consumes: a string, which is a word to be printed # Produces: nothing (void) # Side effect: string is printed vertically def printVertical(word): if (len(word)<=1): print word else: print word[0] printVertical(word[1:])