How you will create your first program in Python?


You can use any Python aware editor to write Python script. Standard distribution of Python comes with IDLE module which is an integrated development and learning environment. Start IDLE and open a new file from file menu. In the editor page enter

print (“Hello World!”)

Save the script as hello.py and execute it from Run menu to get Hello world message on console. This is your first program. It can also be run from command prompt

c:\user>python hello.py

Updated on: 30-Jul-2019

95 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements