Question
What are Comments? Write the two ways to write comments.

Answer

Comments are included with the reason for making the source to code simpler for people to comprehend, and are for the most part ignored by compilers and interpreters.
• Single-line comments are created simply by beginning a line with the hash (#) character, and they are automatically terminated by the end of line.
For example:
#We are learning Python.
• Multiple line comment Entry. In Python, doc string (''') be used as multiple line comment entry

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free