How to get started with the default CPython distribution
Step 1: Download and install the python(3.x) from the provided link:
https://www.python.org/downloads/
Step 2: Click on windows logo to open the start menu.
1. Interactive mode: Here, you don’t have to save any python file unnecessarily in order to run it. The user can type the code directly in the idle and the output of the code would be given instantly.
2. Script mode: In script mode, the whole program is written using a number of codes and then saved in an appropriate file which is then run. Here, at last the program generally gets converted into an ‘.exe’ file.
Step I: Move your cursor to the top left corner of the idle box, there click on the File option, a drop down menu opens up. There click on New File option.
Step II: After then, we should rename the file and save it. If you want you can even do this step at last. For this, move your cursor to the top left corner of the box and click on File menu, a dropdown menu will popup. In the dropdown menu, click on the Save option. Give a name and add .py extension at the end and then save it.
Comments
Post a Comment