Avatar ·

Multi-line input()

📁 function, Advanced Python Topics, question, example, AI

How can you make a multi-line input(), because this function when entering certain characters and then pressing Enter if the program consists only of

a = input()
print(a)

just the question: is it possible to make an input() end when clicking on a certain button, for example, ESC