Thursday 25 October 2018

How to Create your First Python Program

Step 1: Open PyCharm Editor. You can see the introductory screen for PyCharm. To create a new project, click on “Create New Project”.



Step 2: You will need to select a location.
  1. You can select the location where you want the project to be created. If you don’t want to change location than keep it as it is but at least change the name from “untitled” to something more meaningful, like “MyFirstProject”.
  2. PyCharm should have found the Python interpreter you installed earlier.
  3. Next Click the “Create” Button.


Step 3: Now Go up to the “File” menu and select “New”. Next, select “Python file”. 



Step 4: A new pop up will appear. Now type the name of the file you want (Here we give “Hello Python World”) and hit “OK”. 

Step 5: Now type a simple program - print (‘Hello Python World!’).


 Step 6: Now Go up to the “Run” menu and select “Run” to run your program.


Step 7: You can see the output of your program at the bottom of the screen.