Comment in Python – Programming, Pseudocode Example, C# Programming Example
Python 3

Comment in Python

The first line contains a comment. The character # convert the rest of the line to a comment.

#This is a single line

 

You can also comment out a block of text by enclosing it between the ”’ and ”’ characters. This is shown in the following example.

”’
This is a
multiline comment.
”’

Program:

2-Comment-in-Python

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: