Getting start to Python and creating Hello world program

In order to code your python program, first you have to follow these things


  • Open the Python IDLE to start coding
















  • There is a feature in Python, that is if you need to test your codes you can simply type your codes and run on the shell
  • And if you are typing lots of codes go to file and click on new file




















  • I will code the hello world program in two ways i mentioned
1st way (on shell)

simply type these codes on the shell and press enter

print("Hello world")

after pressing enter it will display Hello world, in the code print means the output. We have to type what ever we need to display within (" ") this statement.














2nd way (by creating a new file)

Go to file and click on new file

simply type this code on the file

print("Hello world")

after that click on run and run module or simply press f5 button

save the python file

check the output





















No comments:

Post a Comment