1.What is Python and what are its key features?
Interviewers ask this as an ice-breaker to test if you understand the high-level architecture of Python compared to compiled languages like C++ or Java.
Python is a high-level, dynamically typed, interpreted language created by Guido van Rossum. Its biggest strength is its simple, English-like syntax which emphasizes developer productivity, paired with a massive standard library for everything from web development to AI.
Python is an interpreted, high-level, general-purpose programming language known for readability, rapid prototyping, and a vast ecosystem.
- Readable & Expressive: Uses indentation instead of curly braces, making code clean and concise.
- Interpreted & Interactive: Code executes line-by-line via the Python Virtual Machine (PVM) without manual compilation.
- Dynamically Typed: Variable types are inferred at runtime based on the assigned object.
- Extensive Ecosystem: Built-in packages plus millions of third-party libraries on PyPI (FastAPI, NumPy, PyTorch).
# Clean and expressive syntax in Python:
name = "Think IT Telugu"
role = "AI Engineer"
print(f"Welcome to {name}! Role: {role}")
# Output: Welcome to Think IT Telugu! Role: AI Engineer
name = "Think IT Telugu")Allocates a string object in memory and binds the identifier name to its memory address.role = "AI Engineer")Allocates another string object and binds role.print(...))Evaluates the f-string expressions and sends the formatted output to stdout.