x

Python Comments

PREV     NEXT

Python comments:

Python Programming language supports two types of comments. They are,


1. Single line comments:

Single line comments start with ‘#’ Symbol.

Example:

#this is single line comment


2. Multiple line comments:

Multiple line comments start with triple quote and end with triple quote.

Ex:

     ‘’’ Hi this is multi line

          Comments, please use for document

          It is good ‘’’

Example:

PREV     NEXT



Like it? Please Spread the word!