what are comments? how comment are specified in python give examples
Answers
Answered by
5
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.
Explanation:
eg
#This is a comment
print("Hello, World!")
Similar questions