"Comments are useful and easy way to enhance readability and understandability of a program. " Elaborate with examples
Answers
Answer:
yes the statement is correct
Explanation:
the better way to understand is by an example
# this program aims on finding whether the number entered is palindrome or not...
word=str(input("enter the word")) #you have to enter the word to be checked
rev=word[::-1] # this statement is used to reverse the word
#these statements are to check the condition
if rev==word:# it checks whether the word entered is equal to is reverse
print("the word entered is a palindrome") #if the condition is satisfied this statement will work
else: #this condition will be executed only if the condition before is not satisfied
print("the word entered is not a palindrome")
all the statements above written with hash(#) before are the comments and hence they are making it easy for us to understand the code in a much better way