Which character is used in Python to make a single line comment?
- //
- #
- /* comment */
- """ Comment """
Answer:
Option b: #
In Python, the # character is used to indicate a single-line comment. Any text or code that follows the # character on the same line is considered a comment and is ignored by the Python interpreter when executing the code.
0 Comments