blob: 9c8813b5d972bfdbedc721f5264cb32f04e151db [file] [log] [blame]
Bram Moolenaarc4da1132017-07-15 19:39:43 +02001#!/usr/bin/python
2#
3# Program that writes a number to stdout repeatedly
4#
5# This requires Python 2.6 or later.
6
7from __future__ import print_function
8import sys
9import time
10
11if __name__ == "__main__":
12
13 done = 0
14 while done < 10:
15 done = done + 1
16 print(done)
17 sys.stdout.flush()
18 time.sleep(0.05) # sleep 50 msec