# What is Python?

> Python is a high-level, interpreted programming language created by Guido van Rossum and first released in 1991. It emphasizes code readability with its...

Canonical: https://www.internhack.in/learn/python/python-fundamentals/what-is-python
Last updated: 2026-11-28

Difficulty: Beginner

Python is a high-level, interpreted programming language created by Guido van Rossum and first released in 1991. It emphasizes code readability with its use of significant indentation and a clean, expressive syntax. Python supports multiple programming paradigms including procedural, object-oriented, and functional programming.

Python has become one of the most popular programming languages in the world, consistently ranking in the top three across every major language index. Its popularity stems from its gentle learning curve, massive ecosystem of libraries, and versatility across domains like web development, data science, machine learning, automation, and scripting.

One key characteristic of Python is that it is an interpreted language. Unlike compiled languages such as C or Java, Python code is executed line by line by the Python interpreter. This means you can write a script and run it immediately without a separate compilation step, which makes the development cycle faster and more interactive.

To run your first Python script, you simply create a file with a .py extension and use the python command to execute it. Python also comes with an interactive shell (REPL -- Read, Eval, Print, Loop) where you can type expressions and see results immediately. This makes it an excellent tool for experimentation and learning.

Python uses a "batteries included" philosophy, meaning its standard library provides modules for a wide range of tasks -- from file handling and networking to regular expressions and data serialization -- without needing to install anything extra.

## Code examples

### Your First Python Program

```
print("Hello, World!")
```

The print() function outputs text to the console. This single line is a complete, valid Python program. No boilerplate, no class wrappers -- just one function call.

### Multiple Print Statements

```
print("Welcome to Python!")
print("Python is fun.")
print("Let's start coding.")
```

Python executes statements top to bottom, one line at a time. Each print() call outputs its text followed by a newline character by default.

### Using Comments

```
# This is a single-line comment
print("Comments are ignored by Python")  # Inline comment

# You can use comments to explain your code
# or temporarily disable lines
```

Comments start with the # symbol. Everything after # on that line is ignored by the interpreter. They are used to document code and make it easier to understand.

### Checking Your Python Version

```
import sys
print(sys.version_info.major)
print(sys.version_info.minor)
```

The sys module provides access to interpreter information. sys.version_info gives you the major and minor version numbers. Most modern environments run Python 3.10 or above.

## Key points

- Python files use the .py extension. To run a script, use: python filename.py
- Python is dynamically typed -- you do not need to declare variable types explicitly.
- Indentation is not just a style choice in Python; it is part of the syntax and determines code blocks.
- Python 2 reached end of life in 2020. Always use Python 3 for new projects.

## Concepts covered

Python overview, Interpreted language, Running scripts, REPL

Next: [Variables & Data Types](https://www.internhack.in/learn/python/python-fundamentals/variables-and-data-types) · [All of Python Fundamentals](https://www.internhack.in/learn/python/python-fundamentals)

## More Python Fundamentals lessons

- [Operators](https://www.internhack.in/learn/python/python-fundamentals/operators)
- [Type Casting](https://www.internhack.in/learn/python/python-fundamentals/type-casting)
- [Input & Output](https://www.internhack.in/learn/python/python-fundamentals/input-and-output)

## Related

- [Learn](https://www.internhack.in/learn)
- [Python](https://www.internhack.in/learn/python)
- [Python Fundamentals](https://www.internhack.in/learn/python/python-fundamentals)
