Chapter 1: Introduction to Python and its Features
1.1 What is Python?
Python is a high-level, interpreted programming language known for its simplicity, readability, and wide range
of applications. It is used in fields such as web development, data science, machine learning, automation,
game development, and more.
1.2 History of Python
Python was developed by Guido van Rossum in the late 1980s at CWI, Netherlands. It was officially released
in 1991. Python 2.0 came out in 2000 with garbage collection support, and Python 3.0, released in 2008, is
the current version in use.
1.3 Key Features of Python
- Simple and easy to learn
- Interpreted language (no need to compile)
- Free and open-source
- Cross-platform
- Object-oriented
- Extensive libraries
- Dynamically typed
- Large community support
1.4 Python vs Other Languages
Compared to languages like C or Java, Python has simpler syntax, dynamic typing, and is interpreted rather
than compiled. It is slower than C/C++ but more flexible and user-friendly.
1.5 Your First Python Program
# This is a simple Python program
print("Hello, Python!")
Chapter 1: Introduction to Python and its Features
Output:
Hello, Python!
Practice Questions
1. Who developed Python and in which year?
2. List any five features of Python.
3. Compare Python with C in terms of typing and syntax.
4. What does it mean when we say Python is 'interpreted'?