I got a new laptop recently, and its OS is windows 11. I was testing some stuff, i wrote a simple python code, to just print "hello", and run it on the command prompt. When i run the code, a new cmd window rapidly opens and closes. After that i put a loop on the code and input prompts, and the window stayed open until the code ended. I tried running the code with errors. It runs until the error line and closes the window, not showing me any errors. I dont know why this is happening, but i think it might have something to do with windows 11, as i never had this type of problem whith windows 10.
I tried running simple python code on the cmd, and i expected it to run normally, but instead a new cmd window opens and closes, not showing me the output of the code.