Python : Hello World
Python is a high-level programming language that is widely used for various purposes such as web development, data analysis, artificial intelligence, and more. It was first released in 1991 and has since grown to become one of the most popular programming languages in the world.
One of the reasons for Python's popularity is its simplicity and ease of use. Its syntax is easy to read and understand, making it an excellent choice for beginners who are just starting to learn how to code.
First Program in Python
Below program will output the message "Hello, World!" to the console when executed. You can run this program by saving it in a file with a
.py extension like
hello-world.py and then running the file using the Python interpreter.
How to run Python program from command prompt?
To run Python program from command prompt we can execute below command
python <file-name> python hello-world.py