Which character is used in python to make a single line comment?
Wednesday, March 01, 2023
Add Comment
Question: Which character is used in python to make a single line comment?
In Python, the hash character "#" is used to make a single-line comment. Any text that follows the hash character on a line is treated as a comment and is ignored by the Python interpreter. This is useful for adding explanatory notes to code or temporarily disabling a line of code without deleting it.
0 Komentar
Post a Comment