summaryrefslogtreecommitdiff
path: root/tests/echo_w_prompt.py
blob: 3c8055357df996da096f02cfcb0b672cd78a74a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- coding: utf-8 -*-
from __future__ import print_function

try:
    raw_input
except NameError:
    raw_input = input

while True:
    try:
        a = raw_input('<in >')
    except EOFError:
        print('<eof>')
        break
    print('<out>', a, sep='')