I have a print statement in a for loop so I can watch the progress

  for line in file(file):
      the_line = line.split()
      if the_line:
          print ("Index = %.2f") %index

  Is there a way that only one line will be output and the variable is updated 
rather than one line for every index.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to