File: pyedit-products/unzipped/tools/4.0-examples/emojis-and-runcode.py

# a 4.0 Run Code test script: results vary on older PyEdits and Pythons

import sys, os
print(f'{os.getcwd()=}')
print(f'{sys.version=}')       # show run context (see also os.environ dict)
print(f'{sys.executable=}')

print('👁️ 🖊️ ' + '🐍')
for i in range(10):
   print('👍' * (i+1))         # emojis work if your Py+Tk support them, else replaced

import html                    # works only if RunCode_PYTHONEXECUTABLE set in text_Config.py



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