Step-by-step development: second program:
fileName="data.col" i = 0 while i < len(fileName): letter = fileName[i] if letter == ".": print "found a dot!" break print letter i = i+1
output:
d a t a found a dot!