What are Comments in Python ? | Most asked Interview Questions for fresher

Опубликовано: 13 Октябрь 2024
на канале: TecTute
98
9

#pythoninterviewquestions #python #pythoninterview

What are Comments in Python ? | Most asked Interview Questions for fresher's 2023 | Q&A

Comments in Python are used to add explanatory or descriptive text within the code that is ignored by the interpreter. They are helpful for documenting the code, adding notes, or temporarily disabling certain sections. In Python, there are two types of comments:

Single-line comments
Multi-line comments