I installed Python for Windows on my machine but I had a question: Both IDLE Python 3.5 (Shell) and Python 3.5 (CMD) were installed. Is there a difference between them? Do any of them have more features or something?
I installed Python for Windows on my machine but I had a question: Both IDLE Python 3.5 (Shell) and Python 3.5 (CMD) were installed. Is there a difference between them? Do any of them have more features or something?
There are differences in usability, in theory you are able to perform the same operations in both IDLE (or another text editor) and the interactive prompt.
The difference is that by CMD you will have to run your code line by line, each enter pressed * your code is evaluated and returned with a value, which is great for small tests, however in case you miss a line there is no way to go back and change content, there is no intuitive and practical way to save your code, among many other "problems". Debugging the code seems to me unfeasible by CMD as well, but it's not something I can say for sure, I've never tried. Basically the CMD is indicated for you to perform small tests, see the result of an operation, check how a method works, etc. For even queries.
IDLE offers useful functions such as highlight text, autocomplete for methods and variables, among other functions that make your work as a programmer easier.
* If you execute a block as a "for", for example, you will be able to insert multiple commands before the prompt evaluates its expression