def main():
    # read a string from the user, and then
    # pass the string to function printString(),
    # which prints the string with one char per line.
    text = raw_input("Enter the string: ")
    print "One character per line: "

    printString(text)

def printString(line):

    for pos in range(len(line)):
        print line[pos]

main() 
