File: pyedit-products/unzipped/docetc/examples/Unicode-examples/utf16-data.txt

ÿþ# read an run Python statement strings: like PyEdit's run code menu option



namespace = {}

while True:

    try:

        line = input('>>> ')          # single-line statements only

    except EOFError:

        break

    else:

        exec(line, namespace)         # or eval() and print result



[Home page] Books Code Blog Python Author Train Find ©M.Lutz