![]() Multiple line comments: Multiple line comments, also known as multi-line comments or block comments, are a way to comment out a block of code or add descriptive text spanning multiple lines in Python. X = 5 # This comment is inline with the code The following is an example of a single-line comment: # This is a single-line comment The comments are generally used for brief explanations or notes about the code. The Python interpreter ignores everything that comes after the hash symbol (#) on that line. Single-line comments: Single-line comments begin with a hash symbol (#) and extend to the end of the line. What are Multi-Line and Single-Line Comments in Python?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |