Economy, asked by gujdygjuf, 3 months ago

what is comment in Python explain with example??

Irreverent Answer Allowed✔✔​

Answers

Answered by okay7000
1

Answer:

A comment in Python starts with the hash character, # , and extends to the end of the physical line. A hash character within a string value is not seen as a comment, though. To be precise, a comment can be written in three ways - entirely on its own line, next to a statement of code, and as a multi-line comment block.

1. A comment is text in a program's code, script, or another file that is not meant to be seen by the user running the program. ... Comments help make code easier to understand by explaining what is happening and help prevent portions of a program from executing. The image is an example of an HTML comment.

Answered by Anonymous
44

Answer:

\large\mathsf{\underline{Required \: Answer}}

Comments are the statement that are added to a program with the purpose of making the code easier to understand. Comments are link that exist in computer program that are ignored by compilers and interpreters. Comment can serve as note to yourself for reminders or they can be written with the intention of other programmers being able to understand what your code is doing.

\large\mathsf{\underline\purple{Type \: Of \: Comments \: In \: Python.}}.

There Are Two Types of Comment in Python.

 ☞ Single Line Comments

 ☞ Multi-Line Comments.

Single Line Comments

In Python We Use # Special Character to start the comments.

Multi-Line Comments

To have a multi line comment in Python , we use triple Single Quotas and at the the beginning and at the end of comment.

Similar questions