answersLogoWhite

0

What are comments in programs?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

Comments are just statements to help the programmer or another person read the script. In python, it is denoted by a hash (#) followed by the comment. For example:

#now we will lol

print("lol")

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

Parts of program that are meant only for the human readers.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are comments in programs?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why do you write comments in HTML files how are comments written in HTML programs?

Comments are very important in a HTML code. They are started by <!-- and ended by --!>


How do you remove comment from c program?

There are no comments in C programs. Comments only exist in the source code and the precompiler automatically strips them out before the compiler sees them.


What is the purpose of using comments in c plus plus?

Comments are to help other programmers (or yourself in the future) to understand what is going on in a program, especially when the code itself is complicated and may not be obvious. More time is spent maintaining and improving programs than original development, so leaving clear comments is very important!


What are the comments called that are usually located at the top of a program?

That answer is great, but for those who are looking for a simple answer they are called Global comments. Usually the comments located at the top of a program are used to give additional informations about the program. For example: - creation date - authors: name, department, company, etc - objective, main purpose, business rules - description of each parameter (input and output) - description of data to be returned (used by functions) - history of changes made on routine I absolutely recommend the use of this kind of comments on every routine because it is very interesting have more information that will help others developers (and the authors) to maintain the program. It is also very recommended indeed to use comments on every line of programs. Some programs may be acessed by developers once in a while and the purpose of program may be forgotten. Another reason for the use of comments it is almost certanly that the majority of developers forget the details of programs created by themself after some months.


Why you use a comment in programming?

comments are used in programs to make the program more user friendly. The comment lines will not effect the execution speed of the program.


What is the plural possessive of comments?

The plural possessive of "comments" is "comments'."


Can Facebook comments be hurtful?

Comments anywhere can be hurtful; it depends what comments are made, and about whom.


What are the narrators comments?

Its own comments about his/her character.


How many comments do you have to have to get the refresh button on youtube?

YouTube refreshes comments at a rate of 100 per day. In order to get the refresh button, you'll need to accumulate 1000+ comments. If you have 10k comments, you'll get a refresh button for 50 comments per day.


What Indicates where comments are to be displayed on the printout?

comments box


Can you delete comments on wordpress?

Is it simple, go to comments section in WordPress Admin Dashboard & move the comments to trash


What is the correct way to add comment in PHP?

// For single line comments /* Your comments here */ For multi-line comments