What are the comments of this kind called? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are the comments of this kind called?

Often, when I write in the Atom editor, it offers me comments in caps, such as NOTE or TEMP. There are 14 of them in the atom itself, but in WebStorm, for example, I saw a maximum of 2 - TODO and FIXME. My question is: how are such comments called, and are they used at all, including the additional 12 that are only in the atom?

8th May 2022, 1:40 PM
F_Tref
1 Answer
+ 2
The words don't have any special meaning to python itself, they will be treated by the interpreter just like any other comments (that is: ignored) However, your editor may recognize them as keywords that structure your comments. You can probably search for them, maybe they will be highlighted in some way.
8th May 2022, 2:05 PM
Lisa
Lisa - avatar