2019-09-06 09:52:11 +00:00
|
|
|
'''
|
|
|
|
This is is a very basic stdio handler script. This is used by python.py example.
|
|
|
|
'''
|
|
|
|
|
2019-04-24 13:55:26 +00:00
|
|
|
import time
|
|
|
|
|
2019-09-06 09:52:11 +00:00
|
|
|
# Read an integer from the user:
|
2019-04-24 13:55:26 +00:00
|
|
|
print('Give a small integer: ', end='')
|
|
|
|
num = input()
|
|
|
|
|
2019-09-06 09:52:11 +00:00
|
|
|
# Wait the given time
|
2019-05-04 16:58:46 +00:00
|
|
|
for i in range(int(num)):
|
2019-04-24 13:55:26 +00:00
|
|
|
print('waiter ' + str(i))
|
|
|
|
time.sleep(0.2)
|
|
|
|
|
2019-09-06 09:52:11 +00:00
|
|
|
# Ask the name of the user to say hello.
|
2019-04-24 13:55:26 +00:00
|
|
|
print('Give your name: ', end='')
|
2019-05-04 16:58:46 +00:00
|
|
|
name = input()
|
2019-09-06 09:52:11 +00:00
|
|
|
print('Hello ' + str(name), end='')
|