# note: everything below needs Python 3.13 or newer. The bank runs
# Python 3.12, where this is not there yet.
# *** before: ***
# the prompt of 3.12 was a plain one: no colours and no block editing. A
# multi line block could not be corrected after its first line, an
# indented block broke when pasted, and leaving took a call:
#
# >>> def greet(name):
# ... print("hi", name)
# ...
# >>> exit
# Use exit() or Ctrl-D (i.e. EOF) to exit
# >>> exit()
# *** in version 3.13: ***
# the prompt is a new one, written in python and taken from PyPy:
#
# >>> def greet(name): # the WHOLE block is edited with the arrows,
# ... print("hi", name) # and history walks over blocks, not lines
# ...
# >>> exit # leaves at once, without a call
#
# F1 opens the help of the prompt itself
# F2 shows the history without the >>> and ... marks, ready to copy
# F3 turns on paste mode, so an indented block pastes as it is
#
# tracebacks and prompts are coloured; PYTHON_BASIC_REPL=1 brings the old
# prompt back, and NO_COLOR=1 or PYTHON_COLORS=0 removes the colours
def greet(name):
print("hi", name)
greet("Ann")