Comments in python programming:
Comments are used
to describe the code in program. These comments wont get executed.
In python we have two types of comments. They are as
follows.
- single line comments
- multi line comments
Using single line comment we can specify single line of comment we cant
specify multiple lines if comments in our program.
Using multi line comment we can specify multi line of comment .
single line comments
single
line comments are specified using # symbol.
syntax
#
single line comments are
specified using # symbol.
print('hello')
multi line comments
multi
line comments are specified using '''
symbol.
Syntax.
'''
this is a multi line comment in python programming language.
multi line comments are in python programming language.
using this we describe multiple lines
'''
print('hello')
No comments:
Post a Comment