Skip to content
doubtly

2 answers

Best answer

Key features of python 

(https://doubtly.in/9633/what-key-features-list-python-class-12)


How can you add comment !!

To write a comment in Python, simply put the hash mark # before your desired comment:
# This is a single line comment

How to write multiline comment in python ?

Answer is you cant write multiline comment in python but you can put # in starting of every new line to make it comment
Doubtly · 26 Oct 2022 Report
Was this answer helpful?

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)
Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.