title: Running python scripts without the word "python" - command prompt
body: <p>I need to be able to run python scripts by simple typing <code>helloworld.py</code> into command prompt rather than <code>python helloworld.py</code>. At the moment it opens a code editor rather than executing the script.</p>
  
  <p>I found a stack overflow answer from 2012 (<a href="https://stackoverflow.com/questions/11472843/set-up-python-on-windows-to-not-type-python-in-cmd">Set up Python on Windows to not type python in cmd</a>) that said you can do this:</p>
  
  <p><code>C:\&gt; assoc .py=Python
  C:\&gt; ftype Python="C:\python26\python.exe %1 %*"</code></p>
  
  <p>But it didn't work for me. I'm on a windows 10 computer but have also tried to get it working on a windows 7 computer. I tried using python27 as well.</p>