Articles → Python → Create Your First Python Program

Create Your First Python Program






Download Python




  1. Navigate to https://www.python.org/
  2. Go to ‘Download’ → Select Python 3.7.2
  3. Picture showing a screen to download python

    Click to Enlarge

  4. Once you click on ‘Python 3.7.2’, a file with extension .exe will be downloaded.



IDLE




Picture showing the IDLE in the start menu

Click to Enlarge



Picture showing the python IDLE

Click to Enlarge


Create Your First Program




  1. Click on File → New File
  2. Picture showing the New File menu for creating the new python file

    Click to Enlarge

  3. A blank window will appear as shown in figure below
  4. Picture showing a blank window on which python code could be written

    Click to Enlarge

  5. Here you can write your traditional ‘hello world program’.
Picture showing writing your first hello world program in python

Click to Enlarge


Save The File




  1. Go to File → Save.
  2. Picture showing the File - Save option in IDLE for saving the python program

    Click to Enlarge

  3. A popup window will appear to save the file on hard drive. Click the file name as ‘Hello.py’
  4. Picture showing a window for entering the name of the python file

    Click to Enlarge

  5. Click on ‘Save’.


Picture showing the output of your first python program

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, January 24, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250