Python Introduction
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.
print("Hello, World!")
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
Output:
Hello, World!
Previous Article
Next Article
Python Tutorials
- Hello World
- Variables and Types
- Lists
- Tuple
- Basic Operators
- Strings
- Conditions
- Loops
- Functions
- Classes and Objects
- Dictionaries
- Map
- Filter
- Reduce
- Sets
- Decorators
- Generators
- Modules and Packages
- Numpy Arrays
- Pandas Basics
- List Comprehensions
- Lambda functions
- Multiple Function Arguments
- Partial functions
- Regular Expressions
- Exception Handling
- Serialization
- Code Introspection