title: Erase lines of code in IDLE shell in order to run .py file in command prompt
body: <p>I am following a python course on <a href="https://py4e.org" rel="nofollow noreferrer">py4e.org</a> and I have hit a wall in opening/running (do not know the correct term) a .py file in command prompt on a Windows computer. I have tried the solutions at these links thus far <a href="https://stackoverflow.com/questions/37389858/python-run-py-file-works-ok-in-idle-not-via-command-prompt-windows-7-unicod">q1</a>, <a href="https://stackoverflow.com/questions/23090097/how-can-i-open-py-files-with-python-command-shell-instead-of-idle">q2</a>, and some others. <a href="https://stackoverflow.com/questions/52076496/i-am-unable-to-run-hello-py-and-get-syntaxerror-invalid-syntax">This</a> is what I would like to try next, since I also have <code>Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license()&quot; for more information.</code> showing when I open IDLE shell, but I do not know how to delete these words off the script.</p>