title: My .py file closes immediately after running without giving output
body: <p>When I run a .py file, it just opens and closes immediately. It doesn't give any output. I turned it into an .exe file but still the same result. I ran it from cmd, the result is the same. I checked the program that runs the code and found it to be Python.</p>
  <p>HERE IS THE CODE.</p>
  <p>from tkinter import *</p>
  <p>app = Tk()</p>
  <p>app.geometry(&quot;250x250&quot;)</p>
  <p>app.title(&quot;Tkinter!&quot;)</p>
  <p>mainloop()</p>