https://mobhitsbestcheapprice.blogspot.com/2024/01/python-handle-ctrld-with-import-signal.html
Python - Handle Ctrl d With 'import Signal'