0
What is the work of comment?
3 Risposte
+ 4
Comments help the reader to understand the code and increase readability in code. So, that others can understand what the developer has written in code
See this python example:-
def printhw(): # This creates a new function called printhw.
print("Hello world"*5) # This will print Hello world 5 times when it will be called.
This will become easier for the reader to understand the code and the comments are ignored while running the program.
+ 17
This question has been asked many times, please use the search bar next time.
https://www.sololearn.com/post/10362/?ref=app
https://www.sololearn.com/discuss/639737/?ref=app
https://www.sololearn.com/discuss/479206/?ref=app
https://www.sololearn.com/discuss/2235695/?ref=app
https://www.sololearn.com/discuss/988177/?ref=app
https://www.sololearn.com/discuss/132780/?ref=app
https://www.sololearn.com/discuss/412056/?ref=app
https://www.sololearn.com/discuss/31151/?ref=app
0
Basically, comments are used in big programs where sometimes it happens that the user get confused which funtion does which thing so to clear that confusion it is used....!
I hope u got me...!!☺☺