WRITING OUR FIRST PYTHON PROGRAM....

#3

Hi Everyone....
In this post we will be writing our first python program in Pycharm IDE. So, let's begin.

1. Open you Pycharm IDE. Then you will find a window opened, as shown in image below.


2. Click on Create New Project. 




3. In location, you will find the entire path of your Pycharm IDE in your PC. Replace the untitled with any project name that you want to give to your project.


4. Here, I have given name to my project as blogtuts, you can give any name you wish. Then click on Create.

5. Now, your project is created and a window will appear on your screen as shown in image below. Now you will have create a python file. 



6. Left click on the Project name(where it is encircled ,left click there). A drop down list will appear. Click on New, list will appear ,then click on Python File.



7. Then a small dialogue box will appear for file name. Give any name to you file, but it should be noted that you file name can not be any special or reserved word or it can not be any module name. So, you should be careful while naming your file or else your program might give error while running.


8. Here I have given name as tutorial1.py. You can give any name to your file and by adding .py to the end of its name and keep in mind not to use any module name or any keyword. Then press Enter.

9. Now, a programming window area will open where we are going to write our first program.

10. In our first program we are going to print Hello World and Welcome to codingwithpratiksha.blogspot.com.


11. In order to Run your program, left click anywhere in the workspace or typing area. A drop down list will appear, then click on Run tutorial1. Then a terminal window will open at the bottom of your screen where the output of your program will displayed as shown in figure below.





12. So, we have now successfully completed writing our first program.


Hope you have enjoyed writing your first python program.

Thank You💓!

Comments

Post a Comment