Console closes immediately after I run Python code on Windows 10

1.1k Views Asked by At

Though I use input() at the end of my code, the console stil immediately closes after entering the name in the window in Windows 10 (outside of IDLE), and I cannot see the result. What can I do to stop the console from closing?

#! python 3
name = input('Enter your name: ')
print('Hello ' + name)
input('press Enter to exit: ')
0

There are 0 best solutions below