May-21-2020, 02:04 PM
Hi,
I am new to Python and trying to learn it. I have Python 3.8 with IDLE environment and Anaconda 3 installed in my system (The system has Windows 7 Pro – 64 bit). I was trying to run my first Python script but was unable to do so. I wrote three simple print commands in a notepad file and named it ‘first_script.py’ and saved it in a folder on Desktop (file attached here). I then tried to run the script by right clicking on it and selecting ‘Open with --> Python’. A small command line window did come up but disappeared within a second.
Pls. tell me how to run a script in Python IDLE/ Anaconda environment? Presently I just want to start writing small scripts and see them getting executed.
Thanks and Regards,
Arvind Gupta
I am new to Python and trying to learn it. I have Python 3.8 with IDLE environment and Anaconda 3 installed in my system (The system has Windows 7 Pro – 64 bit). I was trying to run my first Python script but was unable to do so. I wrote three simple print commands in a notepad file and named it ‘first_script.py’ and saved it in a folder on Desktop (file attached here). I then tried to run the script by right clicking on it and selecting ‘Open with --> Python’. A small command line window did come up but disappeared within a second.
Pls. tell me how to run a script in Python IDLE/ Anaconda environment? Presently I just want to start writing small scripts and see them getting executed.
Thanks and Regards,
Arvind Gupta