Using Comment in Python language
'This is an example of single line comment in python with single quote at both end'
'''Comments in python(with hash symbol at beginning will be accepted after code same as below)'''
a = 200 #variable a has the value of 100
b = 300 #variable a has the value of 100
print("answer is ",a+b)
'''this is also a multiline comment in python language with triple quotes both end.
But must be write in a new line. Otherwise Python will throw an error!!!!'''
Comments
Post a Comment