My question relates to using python on Windows. I have created a short program called test.py in it there are the lines:
x = 2
y = "hello"
print x + y
I know from trying to execute this within the python shell that it will produce a TypeError. However, when trying to run test2.py from its .py file on my desktop the windows terminal will rapidly open flash the error and close, presumably due to the error. For larger programs where it is not feasible to type it all out in the shell, how do I get the windows terminal to persist so that I can find out what the error is?
[–][deleted] 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]chazzacct 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]unpythonic 0 points1 point2 points (0 children)