#!/usr/bin/env python import sys import time i = 0 while i <= 100: time.sleep(0.5) sys.stdout.write('%d\n' % i) sys.stdout.flush() i += 5