title: Command prompt closes before program finishes
body: <p><a href="https://i.stack.imgur.com/Qj5Ur.jpg" rel="nofollow noreferrer">enter image description here</a>I'm working with Python 3.4.4 in Windows XP. When I run the .py file using double click on it, it only asks for user name &amp; then terminates the command prompt suddenly. So I can't see final result. Here's my code:</p>
  
  <pre><code>from datetime import datetime
  import time
  from os import getcwd
  import sys
  name = input("Your name please: ")
  print("Hello",name,",your system is:",sys.platform)
  print("Your current work directory is:",getcwd())
  print("Currenttime:",time.strftime("%a"),datetime.today(),time.strftime("%p"))
  print("Thanks for trying. \u00a9 Gaz does Python")
  input()
  </code></pre>
  
  <p>Can anyone help me, please? I've tried <code>time.sleep()</code> but that doesn't work too.</p>