How To Print Hello World in Python



Python is one of the simplest programming languages . One can learn python programming language in days and starts applying it into computer programs. Here, i am going to show how python is being run both on windows and linux:

Windows:

1. Open your IDLE
2. Type in your first program:

print("Hello World")

3. Save the file with .py (i.e hello.py)
4. Press F5 to run your program or run it with shell.

Linux:
1. Open a notepad for linux(i.e gedit)
2. Type in your first program:

#!/usr/bin/python


print"hello world"

3. Save the file with .py(i.e hello.py)
4. Open your terminal and type in "python file.py" (i.e "python hello.py")
5. Press enter and you will see your program on the next line.

If you still have any problem running your program then please leave your comments.
Enjoy! charles!

Post a Comment