My question is a simple one. What is the criteria to classify if something is a comment or isn't a comment. I am asking this as a general question. But I will be using python as a way to express my question.
From the accepted and highly upvoted answer How do I create multiline comments in Python?, I found that triple quotes can be used as a comment. But if I enter a character like \x, I get an error. At that time, definition of comment for me was a text inserted in the code for future reference and making code more understandable and this text is always ignored by the compiler/interpreter. So, I believed that the answer was wrong. Then for some reason I went to Wikipedia to read the definition of comment. Quoting from https://en.m.wikipedia.org
a comment is a programmer-readable explanation or annotation in the source code of a computer program. They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters.
In the Wikipedia page, it is mentioned generally ignored and not always ignored. So triple quotes can be considered as comments. But if a multiline string can be considered as a multiline comment, why can't a single line string be considered as a single line comment?
To summarise, my question is simply that what is the criteria using which we can decide if a statement is a comment or not?
Sorry for my poor English.