190,024 views
45 votes
45 votes
What are some kinds of comments that might be useful for a programmer to include in a program?

User Sijia Din
by
2.7k points

2 Answers

23 votes
23 votes
Also any that explain a line of code for example

print(“Hello World!”)
#outputs Hello World! Onto users screen


This is useful when there’s a complex chunk of code which needs separating without interference - it makes it easier for others to read and comprehend!
User Stefan Koenen
by
3.2k points
6 votes
6 votes

Answer:

First, BUG, meaning a known bug that should be corrected. Next, FIXME, meaning should be corrected. Also, HACK, meaning a workaround. Finally, TODO, meaning something to be done.

Explanation: Here is a compleat sentence vertion of the person of me.

User Rednoyz
by
2.5k points