Answer: Python is a simple, high-level, interpreted, object-oriented language; comments are notes in code that Python ignores, written with # (and multi-line notes are usually written with triple quotes).
Key features of Python
- Simple, readable syntax; uses indentation to mark blocks.
- High-level and interpreted: code runs line by line without a separate compile step.
- Dynamically typed: no need to declare variable types.
- Object-oriented, and also supports procedural programming.
- Platform independent (portable) and free / open source.
- Large standard library and many third-party modules.
Comments
A comment is text in a program meant for the reader. The interpreter ignores it. Comments explain what the code does.
Single-line comment: start with #.
# This is a comment
x = 10 # comment after code
Multi-line comment: Python has no special multi-line comment symbol. Either put # at the start of each line, or write the text inside triple quotes. A triple-quoted string that is not assigned to anything is ignored and works as a multi-line comment (at the start of a function it becomes a docstring).
"""
This program finds
the sum of two numbers
"""
a, b = 4, 5
print(a + b)