You were understood perfectly fine and Larz gave you the only possible answer - IDLE is poor IDE and does not offer way to pass command line arguments when executing a script. Larz offered you a way to simulate it - by adding these lines you simulate as if there were command line arguments passed.
Of course it's better to use better IDE. I recommend VS Code, but there are plenty to choose from.
We have nice tutorial on VSCode
Of course it's better to use better IDE. I recommend VS Code, but there are plenty to choose from.
We have nice tutorial on VSCode
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs